Explorar o código

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
Julien Schmidt %!s(int64=8) %!d(string=hai) anos
pai
achega
20e36f9a8c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      .travis.yml

+ 4 - 0
.travis.yml

@@ -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)"