travis: remove 'grep -v vendor' from go list

In recent versions of Go, you no longer need to manually remove the
vendor directory from commands like `go list`.
This commit is contained in:
Jimmy Zelinskie 2017-12-29 17:14:55 -05:00
parent e9d1e71276
commit 120c4615c1

View file

@ -11,20 +11,20 @@ matrix:
- go get -u golang.org/x/tools/cmd/... - go get -u golang.org/x/tools/cmd/...
script: script:
- dep ensure - dep ensure
- go test -v $(go list ./... | grep -v /vendor/) - go test -v $(go list ./...)
- go vet $(go list ./... | grep -v /vendor/) - go vet $(go list ./...)
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "") - 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 "") || exit 1; done) - (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
# Using HEAD of dependencies # Using HEAD of dependencies
- install: - install:
- go get -t ./... - go get -t ./...
- go get -u github.com/golang/lint/... - go get -u github.com/golang/lint/...
- go get -u golang.org/x/tools/cmd/... - go get -u golang.org/x/tools/cmd/...
script: script:
- go test -v $(go list ./... | grep -v /vendor/) - go test -v $(go list ./...)
- go vet $(go list ./... | grep -v /vendor/) - go vet $(go list ./...)
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "") - 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 "") || exit 1; done) - (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
allow_failures: allow_failures:
# Using HEAD of dependencies # Using HEAD of dependencies
- install: - install:
@ -32,10 +32,10 @@ matrix:
- go get -u github.com/golang/lint/... - go get -u github.com/golang/lint/...
- go get -u golang.org/x/tools/cmd/... - go get -u golang.org/x/tools/cmd/...
script: script:
- go test -v $(go list ./... | grep -v /vendor/) - go test -v $(go list ./...)
- go vet $(go list ./... | grep -v /vendor/) - go vet $(go list ./...)
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "") - 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 "") || exit 1; done) - (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
notifications: notifications:
irc: irc:
channels: channels: