2015-07-29 13:45:57 -04:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2016-02-03 23:41:11 -05:00
|
|
|
- 1.6
|
2016-09-05 19:56:50 +02:00
|
|
|
- 1.7
|
2017-03-13 09:45:05 -04:00
|
|
|
- 1.8
|
2016-04-24 14:02:29 -04:00
|
|
|
- tip
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2016-01-07 10:08:59 -05:00
|
|
|
|
2016-02-21 13:50:28 -05:00
|
|
|
gobuild_args: -race
|
|
|
|
|
2016-01-07 10:08:59 -05:00
|
|
|
before_install:
|
2016-04-24 14:02:29 -04:00
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get -u github.com/kisielk/errcheck; fi
|
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get -u github.com/golang/lint/golint; fi
|
2016-01-07 10:08:59 -05:00
|
|
|
|
|
|
|
before_script:
|
2016-01-07 10:12:05 -05:00
|
|
|
- '! gofmt -s -l . | read'
|
2016-01-07 10:15:03 -05:00
|
|
|
- echo $TRAVIS_GO_VERSION
|
2016-04-24 14:02:29 -04:00
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then golint ./...; fi
|
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then errcheck ./...; fi
|
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go tool vet .; fi
|
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go tool vet --shadow .; fi
|
|
|
|
|
|
|
|
script:
|
2016-07-12 12:13:54 -04:00
|
|
|
- go test -bench . -v ./...
|
|
|
|
- go test -race -bench . -v ./...
|