[ci] Run go vet, gofmt and the race detector during tests.

This commit is contained in:
Matt Silverlock
2015-11-22 16:28:37 +08:00
parent 4c1594f80c
commit 7bcadec365
+7 -1
View File
@@ -1,8 +1,14 @@
language: go
sudo: false
go:
- 1.3
- 1.4
- 1.5
- tip
install:
- go get golang.org/x/tools/cmd/vet
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- go test -v -race ./...