]> go.fuhry.dev Git - fsnotify.git/commitdiff
TravisCI update
authorNathan Youngman <git@nathany.com>
Wed, 14 Oct 2015 22:49:57 +0000 (16:49 -0600)
committerNathan Youngman <git@nathany.com>
Wed, 14 Oct 2015 22:49:57 +0000 (16:49 -0600)
.travis.yml

index 67467e14079ef382a1d78b93a50648111cae6a18..1b5151f123900ae9a0e6c81d6e448586de301180 100644 (file)
@@ -2,10 +2,15 @@ sudo: false
 language: go
 
 go:
-  - 1.4.1
+  - 1.5.1
 
 before_script:
-  - FIXED=$(go fmt ./... | wc -l); if [ $FIXED -gt 0 ]; then echo "gofmt - $FIXED file(s) not formatted correctly, please run gofmt to fix this." && exit 1; fi
+  - go get -u github.com/golang/lint/golint
+
+after_script:
+  - test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
+  - test -z "$(golint ./...     | tee /dev/stderr)"
+  - go vet ./...
 
 os:
   - linux