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 language: go
go:
- 1.7.5
- 1.8.3
- 1.9
- tip
matrix: matrix:
include: allow_failures:
- go: 1.6.3 - go: tip
- go: 1.7.5 fast_finish: true
- go: 1.8.2
- go: 1.9 before_script:
- go: master - 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