Add go vet and golint to TravisCI.
This commit is contained in:
parent
0932dfeb12
commit
ecacc006cd
1 changed files with 6 additions and 1 deletions
|
@ -5,9 +5,14 @@ go:
|
|||
install:
|
||||
- go get -d -t -v ./...
|
||||
- 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:
|
||||
- export PATH=$PATH:$HOME/gopath/bin
|
||||
- go vet *.go
|
||||
- fgt golint *.go
|
||||
- go test -v -covermode=count -coverprofile=profile.cov
|
||||
after_success:
|
||||
- go get -v github.com/mattn/goveralls
|
||||
- export PATH=$PATH:$HOME/gopath/bin
|
||||
- goveralls -coverprofile=profile.cov -service=travis-ci
|
||||
|
|
Loading…
Reference in a new issue