mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-13 04:56:33 +08:00
Add go vet
to Travis CI
This commit is contained in:
parent
b5e73ea381
commit
93090fcbbc
@ -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 .
|
||||||
|
Loading…
Reference in New Issue
Block a user