forked from kubernetes-sigs/kubebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (31 loc) · 761 Bytes
/
.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
language: go
cache:
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
os:
- linux
- osx
go:
- "1.12"
git:
depth: 3
go_import_path: sigs.k8s.io/kubebuilder
services:
- docker
before_install:
- go get -u github.com/golang/dep/cmd/dep
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GO111MODULE=on scripts/install_and_setup.sh; 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:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then GO111MODULE=on TRACE=1 PATH=$PATH:$(pwd) ./test_e2e.sh ; fi
- GO111MODULE=on TRACE=1 ./test.sh
- ./scripts/install_test.sh
# TBD. Suppressing for now.
notifications:
email: false