-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from nats-io/update_go_version_in_travis
[UPDATED] Dependencies and Go version in travis.yml
- Loading branch information
Showing
6 changed files
with
51 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
language: go | ||
go: | ||
- 1.16.x | ||
- 1.15.x | ||
- 1.18.x | ||
- 1.17.x | ||
go_import_path: github.com/nats-io/stan.go | ||
install: | ||
- go get -u honnef.co/go/tools/cmd/staticcheck | ||
- go get -u github.com/client9/misspell/cmd/misspell | ||
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then go install honnef.co/go/tools/cmd/staticcheck@latest; fi | ||
- go install github.com/client9/misspell/cmd/misspell@latest | ||
before_script: | ||
- $(exit $(go fmt ./... | wc -l)) | ||
- go vet -modfile go_tests.mod ./... | ||
- find . -type f -name "*.go" | grep -v "/pb/" | xargs misspell -error -locale US | ||
- staticcheck -tests=false ./... | ||
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then staticcheck -tests=false ./...; fi | ||
script: | ||
- go test -v -race . -modfile go_tests.mod | ||
after_success: | ||
- if [[ "$TRAVIS_GO_VERSION" =~ 1.16 ]]; then ./scripts/cov.sh TRAVIS; fi | ||
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then ./scripts/cov.sh TRAVIS; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters