forked from kubernetes-sigs/cri-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (87 loc) · 2.24 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
language: go
sudo: required
dist: xenial
go:
- 1.13.x
env:
- GOPROXY=https://proxy.golang.org
- GOSUMDB=https://sum.golang.org
os:
- linux
- linux-ppc64le
- windows
go_import_path: github.com/kubernetes-sigs/cri-tools
services:
- docker
before_install:
- |
(
set -Eeuo pipefail
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install -y make mingw
export PATH="/c/tools/mingw64/bin:/c/ProgramData/chocolatey/bin;$PATH"
fi
)
install:
- make install.ginkgo
jobs:
include:
- stage: Static check
os: linux
script:
- make install.lint
- make lint
- hack/verify-go-modules.sh
- stage: Build
os: linux
script:
- make release
- stage: Build
os: osx
script:
- make release
- stage: Build
os: linux-ppc64le
script:
- make release
- stage: Test
os: linux
script:
- make
- sudo make install
- travis_wait hack/install-docker.sh
- travis_wait hack/install-kubelet.sh
- sudo cp build/bin/ginkgo /usr/local/bin
- sudo env PATH=$PATH hack/run-critest.sh
- stage: Test
os: windows
script:
- make
- powershell -c "Set-ExecutionPolicy Bypass -Scope CURRENTUSER -Force"
- travis_wait powershell hack/install-kubelet.ps1
# Skip hack/run-critest.sh temporarily.
- stage: Test
name: crictl e2e
os: linux
script:
- |
sudo apt-get update &&\
sudo apt-get install -y libseccomp-dev
- |
VERSION=v0.8.2 &&\
sudo mkdir -p /opt/cni/bin &&\
sudo wget -qO- https://github.com/containernetworking/plugins/releases/download/$VERSION/cni-plugins-linux-amd64-$VERSION.tgz \
| sudo tar xfz - -C /opt/cni/bin &&\
ls -lah /opt/cni/bin
- |
VERSION=v1.0.0-rc8 &&\
sudo wget -q -O \
/usr/bin/runc \
https://github.com/opencontainers/runc/releases/download/$VERSION/runc.amd64 &&\
sudo chmod +x /usr/bin/runc &&\
runc --version
- sudo -E env "PATH=$PATH" make all install test-e2e TESTFLAGS=-v
stages:
- Static check
- Build
- Test