Browse Source
This change augments the Travis CI build to perform: - Check that all files follow gofmt style, including -s (simplify) option. - Check that go vet does not report any problems. - Use race detector when running tests, to ensure there are no data races found.pull/134/head
1 changed files with 7 additions and 1 deletions
@ -1,8 +1,14 @@ |
|||||||
language: go |
language: go |
||||||
sudo: false |
sudo: false |
||||||
|
|
||||||
go: |
go: |
||||||
- 1.3 |
- 1.3 |
||||||
- 1.4 |
- 1.4 |
||||||
- 1.5 |
- 1.5 |
||||||
- tip |
- 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 ./... |
||||||
|
|||||||
Loading…
Reference in new issue