]>
Commit | Line | Data |
---|---|---|
1 | dist: trusty | |
2 | sudo: required | |
3 | services: | |
4 | - docker | |
5 | language: go | |
6 | go: | |
7 | - "1.12.x" | |
8 | - "1.11.x" | |
9 | ||
10 | install: | |
11 | # This script is used by the Travis build to install a cookie for | |
12 | # go.googlesource.com so rate limits are higher when using `go get` to fetch | |
13 | # packages that live there. | |
14 | # See: https://github.com/golang/go/issues/12933 | |
15 | - bash scripts/gogetcookie.sh | |
16 | ||
17 | script: | |
18 | - make test | |
19 | - make vet | |
20 | - make website-test | |
21 | ||
22 | matrix: | |
23 | fast_finish: true | |
24 | allow_failures: | |
25 | - go: tip | |
26 | ||
27 | cache: | |
28 | directories: | |
29 | - $GOPATH/src | |
30 | - $HOME/.cache/go-build | |
31 | - $HOME/gopath/pkg/mod | |
32 | ||
33 | env: | |
34 | GO111MODULE=on |