Skip to content

Commit

Permalink
Merge pull request #11 from goji/ci-update
Browse files Browse the repository at this point in the history
[ci] Run go vet, gofmt and the race detector during tests.
  • Loading branch information
elithrar committed Nov 14, 2015
2 parents c1b2bcd + 088d235 commit c39b032
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
sudo: false
language: go
sudo: false
go:
- 1.2
- 1.3
- 1.4
- 1.5
- tip

- 1.2
- 1.3
- 1.4
- 1.5
- tip
install:
- go list -f '{{range .Imports}}{{.}} {{end}}' ./... | xargs go get -v
- go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs go get -v
- go get golang.org/x/tools/cmd/cover
- go build -v ./...

- go get golang.org/x/tools/cmd/vet
script:
- go test -v -cover ./...
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- go test -v -race ./...

0 comments on commit c39b032

Please sign in to comment.