Skip to content

Commit

Permalink
GH-203: Reverted travis go version to 1.16.7 due to travis not having…
Browse files Browse the repository at this point in the history
… 1.17.x support.
  • Loading branch information
jirenius committed Aug 26, 2021
1 parent 678cb9f commit 943a899
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
@@ -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

0 comments on commit 943a899

Please sign in to comment.