forked from kubernetes-sigs/cri-tools
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
59 lines (51 loc) · 1.13 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
language: go
sudo: required
dist: trusty
go:
- 1.11.x
os:
- linux
- 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.tools
jobs:
include:
- stage: Static check
os: linux # Only need to run on Linux
script:
- make lint
- make gofmt
- stage: Build
os: linux # Only need to run on Linux
script:
- make release
- stage: Test
os: linux
script:
- make
- hack/install-docker.sh
- hack/install-kubelet.sh
- sudo env PATH=$PATH GOPATH=$GOPATH hack/run-critest.sh
- stage: Test
os: windows
script:
- make windows
- powershell -c "Set-ExecutionPolicy Bypass -Scope CURRENTUSER -Force"
- powershell hack/install-kubelet.ps1
# Skip hack/run-critest.sh temporarily.
stages:
- Static check
- Build
- Test