Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-203: Reverted travis go version to 1.16.7 due to travis not having…
… 1.17.x support.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 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,15 +1,15 @@ | ||
language: go | ||
go: | ||
- 1.16.x | ||
- 1.17.0 | ||
- 1.15.x | ||
- 1.16.7 | ||
install: | ||
- go get -t ./... | ||
- ./scripts/install-checks.sh | ||
before_script: | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]]; then ./scripts/check.sh; fi | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]]; then ./scripts/check.sh; fi | ||
- go build | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; fi | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; fi | ||
script: | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]]; then ./scripts/cover.sh TRAVIS; else go test -v -race $PACKAGES; fi | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]]; then ./scripts/cover.sh TRAVIS; else go test -v -race $PACKAGES; fi | ||
after_success: | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ghr --owner resgateio --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi | ||
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ghr --owner resgateio --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi |