blob: 4d78a519feb62e4f0271c0a6483b5b5b83de6e0a [file] [log] [blame]
khenaidooab1f7bd2019-11-14 14:00:27 -05001language: go
2
3go:
4 - 1.6
5 - 1.7
6 - 1.8
7 - tip
8
9matrix:
10 allow_failures:
11 - go: tip
12
13gobuild_args: -race
14
15before_install:
16 - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get -u github.com/kisielk/errcheck; fi
khenaidood948f772021-08-11 17:49:24 -040017 - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get -u golang.org/x/lint/golint; fi
khenaidooab1f7bd2019-11-14 14:00:27 -050018
19before_script:
20 - '! gofmt -s -l . | read'
21 - echo $TRAVIS_GO_VERSION
22 - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then golint ./...; fi
23 - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then errcheck ./...; fi
24 - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go tool vet .; fi
25 - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go tool vet --shadow .; fi
26
27script:
28 - go test -bench . -v ./...
29 - go test -race -bench . -v ./...