Scott Baker | e7144bc | 2019-10-01 14:16:47 -0700 | [diff] [blame] | 1 | sudo: false |
2 | language: go | ||||
3 | matrix: | ||||
4 | allow_failures: | ||||
5 | - go: master | ||||
6 | fast_finish: true | ||||
7 | include: | ||||
8 | - go: 1.10.x | ||||
9 | - go: 1.11.x | ||||
10 | env: GOFMT=1 | ||||
11 | - go: master | ||||
12 | install: | ||||
13 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). | ||||
14 | script: | ||||
15 | - go get -t -v ./... | ||||
16 | - if test -n "${GOFMT}"; then gofmt -w -s . && git diff --exit-code; fi | ||||
17 | - go tool vet . | ||||
18 | - go test -v -race ./... |