2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-11-14 11:31:28 +08:00

Merge pull request #7 from tamird/vet

Add `go vet` to Travis CI
This commit is contained in:
Soheil Hassas Yeganeh 2016-02-22 21:43:55 -05:00
commit dcd94116ef

View File

@ -9,9 +9,11 @@ go:
before_install: before_install:
- go get -u github.com/golang/lint/golint - go get -u github.com/golang/lint/golint
- if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then go get -u github.com/kisielk/errcheck; fi - if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then go get -u github.com/kisielk/errcheck; fi
- go get -u golang.org/x/tools/cmd/vet
before_script: before_script:
- '! gofmt -s -l . | read' - '! gofmt -s -l . | read'
- golint ./... - golint ./...
- echo $TRAVIS_GO_VERSION - echo $TRAVIS_GO_VERSION
- if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then errcheck ./...; fi - if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then errcheck ./...; fi
- go vet .