Skip to content

Commit

Permalink
travis: check go vet and gofmt (#577)
Browse files Browse the repository at this point in the history
* travis: check go vet and gofmt

This makes the tests fail if go vet or gofmt find something

* travis: use gofmt simplify flag
  • Loading branch information
julienschmidt authored May 2, 2017
1 parent 147bd02 commit 20e36f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ matrix:

before_script:
- mysql -e 'create database gotest;'
script:
- go test -v
- go vet ./...
- test -z "$(gofmt -d -s . | tee /dev/stderr)"

0 comments on commit 20e36f9

Please sign in to comment.