Skip to content

Commit

Permalink
Simplify Travis build because of Go 1.9 tool chain ignoring vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
VMitov committed Sep 23, 2017
1 parent 9bfb793 commit 20f9dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
- go get github.com/golang/lint/golint
- go get github.com/mattn/goveralls
before_script:
- go vet $(go list ./... | grep -v vendor)
- go vet ./...
- test -z "$(gofmt -s -l . 2>&1 | grep -v vendor | tee /dev/stderr)"
- test -z "$(go list ./... 2>&1 | grep -v /vendor/ | xargs -L1 golint | tee /dev/stderr)"
- golint -set_exit_status $(go list ./...)
script: goveralls -service=travis-ci

- &test
stage: test alternative environments
install: skip
script: go test -race $(go list ./... | grep -v /vendor/)
script: go test -race ./...
go: 1.x
os: linux
- <<: *test
Expand Down

0 comments on commit 20f9dc7

Please sign in to comment.