travis: add golint, goimports and go vet (#173)
This commit is contained in:
parent
f15712670f
commit
f7baa3b5ea
1 changed files with 5 additions and 0 deletions
|
@ -5,8 +5,13 @@ go:
|
||||||
sudo: false
|
sudo: false
|
||||||
install:
|
install:
|
||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
|
- go get -u github.com/golang/lint/golint
|
||||||
|
- go get -u golang.org/x/tools/cmd/goimports
|
||||||
script:
|
script:
|
||||||
- go test -v $(go list ./... | grep -v /vendor/)
|
- go test -v $(go list ./... | grep -v /vendor/)
|
||||||
|
- go vet $(go list ./... | grep -v /vendor/)
|
||||||
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
||||||
|
- for d in $(go list ./... | grep -v /vendor/); do diff <(golint $d) <(printf ""); done
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
|
|
Loading…
Add table
Reference in a new issue