2015-07-30 01:45:57 +08:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2016-02-04 12:41:11 +08:00
|
|
|
- 1.5
|
|
|
|
- 1.6
|
2016-04-25 02:02:29 +08:00
|
|
|
- tip
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2016-01-07 23:08:59 +08:00
|
|
|
|
2016-02-22 02:50:28 +08:00
|
|
|
gobuild_args: -race
|
|
|
|
|
2016-01-07 23:08:59 +08:00
|
|
|
before_install:
|
2016-04-25 02:02:29 +08: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 23:08:59 +08:00
|
|
|
|
|
|
|
before_script:
|
2016-01-07 23:12:05 +08:00
|
|
|
- '! gofmt -s -l . | read'
|
2016-01-07 23:15:03 +08:00
|
|
|
- echo $TRAVIS_GO_VERSION
|
2016-04-25 02:02:29 +08: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:
|
|
|
|
- go test -v ./...
|