Skip to content

Commit

Permalink
Update travis to only test on Go 1.9
Browse files Browse the repository at this point in the history
Go 1.9 tools ignore vendor/. So this lets us replace all those ugly
grep -v /vendor/ commands and just use ./..., e.g. go test ./...
  • Loading branch information
ryboe committed Sep 13, 2017
1 parent 74ed9d9 commit c10e6b8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: go

go:
- 1.7
- 1.8
- 1.9
- tip

# skip the install step. don't `go get` deps. only build with code in vendor/
Expand All @@ -18,14 +17,13 @@ notifications:
email: false

before_script:
- GO_FILES=$(find . -iname '*.go' | grep -v /vendor/)
- PKGS=$(go list ./... | grep -v /vendor/)
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
- go get github.com/golang/lint/golint
- go get honnef.co/go/tools/cmd/megacheck

script:
- test -z $(gofmt -s -l $GO_FILES)
- go test -v -race $PKGS
- go vet $PKGS
- megacheck $PKGS
- golint -set_exit_status $PKGS
- go test -v -race ./...
- go vet ./...
- megacheck ./...
- golint -set_exit_status $(go list ./... | grep -v /vendor/)

0 comments on commit c10e6b8

Please sign in to comment.