Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update travis to only test on Go 1.9 #14

Merged
merged 1 commit into from
Sep 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/)