travis: improve travis config

master
Ian Davis 2017-08-27 12:50:43 +01:00
parent 8306de17cc
commit 0b9a82db13
1 changed files with 18 additions and 6 deletions

View File

@ -1,9 +1,21 @@
language: go
go:
- 1.7.5
- 1.8.3
- 1.9
- tip
matrix:
include:
- go: 1.6.3
- go: 1.7.5
- go: 1.8.2
- go: 1.9
- go: master
allow_failures:
- go: tip
fast_finish: true
before_script:
- GO_FILES=$(find . -iname '*.go' | grep -v /vendor/)
- PKGS=$(go list ./... | grep -v /vendor/)
script:
- test -z $(gofmt -s -l $GO_FILES)
- go test -v -race $PKGS
- go vet $PKGS