Skip to content

Commit 20e36f9

Browse files
travis: check go vet and gofmt (#577)
* travis: check go vet and gofmt This makes the tests fail if go vet or gofmt find something * travis: use gofmt simplify flag
1 parent 147bd02 commit 20e36f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,7 @@ matrix:
7575

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

0 commit comments

Comments
 (0)