blob: 597bc9996f0105536da59bc98a0b603324311426 [file] [log] [blame]
Scott Bakere7144bc2019-10-01 14:16:47 -07001sudo: false
2language: go
3matrix:
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
12install:
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).
14script:
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 ./...