Skip to content

Commit

Permalink
Merge pull request #207 from resgateio/feature/gh-203-go-1.17.0-travis
Browse files Browse the repository at this point in the history
Feature/gh 203 go 1.17.0 travis
  • Loading branch information
jirenius committed Sep 7, 2021
2 parents 3e206ae + e8412f6 commit e6bc3a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
language: go
go:
- 1.15.x
- 1.16.7
- 1.16.x
- 1.17
install:
- go get -t ./...
- ./scripts/install-checks.sh
before_script:
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]]; then ./scripts/check.sh; fi
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]]; then ./scripts/check.sh; fi
- go build
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; fi
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; fi
script:
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]]; then ./scripts/cover.sh TRAVIS; else go test -v -race $PACKAGES; fi
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]]; then ./scripts/cover.sh TRAVIS; else go test -v -race $PACKAGES; fi
after_success:
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.16(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ghr --owner resgateio --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.17(\.[0-9]+)?$ ]] && [ "$TRAVIS_TAG" != "" ]; then ghr --owner resgateio --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi

0 comments on commit e6bc3a5

Please sign in to comment.