language: go
sudo: false
go:
- 1.8.3
- 1.7.6
- 1.6.4
install:
- go get -t ./...
- go get github.com/nats-io/gnatsd
- go get github.com/mattn/goveralls
- go get github.com/wadey/gocovmerge
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u github.com/client9/misspell/cmd/misspell
before_script:
- go fmt ./...
- go vet ./...
- gosimple ./...
- misspell -error -locale US .
- staticcheck -ignore "$(cat staticcheck.ignore)" ./...
script:
- go test -i -race ./...
- go test -v -race ./...
after_script:
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]]; then ./scripts/cov.sh TRAVIS; fi

language: go
sudo: false
go:
- 1.8.x
- 1.7.x
- 1.6.x
install:
- go get -t ./...
- go get github.com/nats-io/gnatsd
- go get github.com/mattn/goveralls
- go get github.com/wadey/gocovmerge
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u github.com/client9/misspell/cmd/misspell
before_script:
- go fmt ./...
- go vet ./...
- gosimple ./...
- misspell -error -locale US .
- staticcheck -ignore "$(cat staticcheck.ignore)" ./...
script:
- go test -i -race ./...
- go test -v -race ./...
after_script:
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]]; then ./scripts/cov.sh TRAVIS; fi

Use the latest version of Go in Travis.CI
Use the latest version of Go in Travis.CI

Travis.CI support `x`  in place of the minor to use the latest for a given major version - https://docs.travis-ci.com/user/languages/go/#Specifying-a-Go-version-to-use