Add go vet and golint to TravisCI.

This commit is contained in:
John C. Vernaleo 2014-09-08 09:07:50 -04:00
parent 0932dfeb12
commit ecacc006cd

View file

@ -5,9 +5,14 @@ go:
install: install:
- go get -d -t -v ./... - go get -d -t -v ./...
- go get -v code.google.com/p/go.tools/cmd/cover - go get -v code.google.com/p/go.tools/cmd/cover
- go get code.google.com/p/go.tools/cmd/vet
- go get github.com/GeertJohan/fgt
- go get github.com/golang/lint/golint
script: script:
- export PATH=$PATH:$HOME/gopath/bin
- go vet *.go
- fgt golint *.go
- go test -v -covermode=count -coverprofile=profile.cov - go test -v -covermode=count -coverprofile=profile.cov
after_success: after_success:
- go get -v github.com/mattn/goveralls - go get -v github.com/mattn/goveralls
- export PATH=$PATH:$HOME/gopath/bin
- goveralls -coverprofile=profile.cov -service=travis-ci - goveralls -coverprofile=profile.cov -service=travis-ci