forked from kubernetes-sigs/kubebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (51 loc) · 1.48 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
language: go
cache:
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
os:
- linux
- osx
go:
- "1.13"
# A build matix defines the K8s versions to use for e2e tests. Travis runs these in parrellel
env:
- KIND_K8S_VERSION="v1.16.2"
- KIND_K8S_VERSION="v1.15.3"
- KIND_K8S_VERSION="v1.14.1"
- GOPROXY=https://proxy.golang.org/
# As OSX isn't running KIND e2e tests exlude it from the matrix
matrix:
exclude:
- os: osx
env: KIND_K8S_VERSION="v1.16.2"
- os: osx
env: KIND_K8S_VERSION="v1.15.3"
- os: osx
env: KIND_K8S_VERSION="v1.14.1"
- os: linux
env: GOPROXY=https://proxy.golang.org/
git:
depth: 3
go_import_path: sigs.k8s.io/kubebuilder
services:
- docker
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p /Users/travis/gopath/bin; fi
before_script:
# Install must be set to prevent default `go get` to run.
# The dependencies have already been vendored by `dep` so
# we don't need to fetch them.
install:
-
script:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
- ./scripts/verify.sh
# The golden_test.sh check if the the testdata is updated according to the current changes
# To update the testdata use the Makefile targets `make generate-setup` then `make generate-testdata`
- ./golden_test.sh
- ./test.sh
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then PATH=$PATH:$(pwd) ./test_e2e.sh; fi
# TBD. Suppressing for now.
notifications:
email: false