This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
54 lines (43 loc) · 1.74 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: go
go: "1.13"
os:
- linux
sudo: required
dist: trusty
env:
matrix:
- HYPERKUBE_VERSION=1.18.2
- HYPERKUBE_VERSION=1.17.0
- HYPERKUBE_VERSION=1.16.3
- HYPERKUBE_VERSION=1.14.5
- HYPERKUBE_VERSION=1.13.10
- HYPERKUBE_VERSION=1.12.10
- HYPERKUBE_VERSION=1.11.10
- HYPERKUBE_VERSION=1.10.12
- HYPERKUBE_VERSION=1.8.6
cache:
directories:
- ~/util-linux
before_install:
- sudo apt-get update
install:
- sudo apt-get install -yq systemd libseccomp2 curl autopoint
- ls -l ~/util-linux/nsenter || bash -xec "mkdir -pv ~/util-linux && curl -Lf https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.gz | tar -xz --strip-component 1 -C ~/util-linux && ~/util-linux/autogen.sh && pushd ~/util-linux/ && ./configure --without-python --disable-all-programs --enable-nsenter && popd"
- make -C ~/util-linux -j nsenter
- sudo cp -v ~/util-linux/nsenter /usr/local/bin
- sudo curl -Lf https://storage.googleapis.com/kubernetes-release/release/v$HYPERKUBE_VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl
- sudo chmod +x /usr/local/bin/kubectl
# or use in pupernetes --kubectl-link /usr/local/bin/kubectl
before_script:
- make
script:
- sudo ./pupernetes daemon run sandbox/ -v 4 --job-type systemd --bind-address 0.0.0.0:8989 --hyperkube-version $HYPERKUBE_VERSION --kubeconfig-path $HOME/.kube/config
- make ci-validation
# debug commands
after_failure:
- uptime # check the load
- free -h # pods may be evicted
- sudo journalctl -e --no-pager -o cat -u p8s-containerd.service
- sudo journalctl -e --no-pager -o cat -u p8s-etcd.service
- sudo journalctl -e --no-pager -o cat -u p8s-kubelet.service
- sudo journalctl -e --no-pager -o cat -u p8s-kube-apiserver.service