blob: 597bc9996f0105536da59bc98a0b603324311426 [file] [log] [blame]
sslobodrd046be82019-01-16 10:02:22 -05001sudo: false
2language: go
sslobodrd046be82019-01-16 10:02:22 -05003matrix:
4 allow_failures:
5 - go: master
6 fast_finish: true
Stephane Barbarie260a5632019-02-26 16:12:49 -05007 include:
8 - go: 1.10.x
9 - go: 1.11.x
10 env: GOFMT=1
11 - go: master
sslobodrd046be82019-01-16 10:02:22 -050012install:
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 ./...
Stephane Barbarie260a5632019-02-26 16:12:49 -050016 - if test -n "${GOFMT}"; then gofmt -w -s . && git diff --exit-code; fi
sslobodrd046be82019-01-16 10:02:22 -050017 - go tool vet .
18 - go test -v -race ./...