Explorar el 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 hace 8 años
padre
commit
20e36f9a8c
Se han modificado 1 ficheros con 4 adiciones y 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)"