Skip to content

Commit

Permalink
update travis scripts
Browse files Browse the repository at this point in the history
* bump to go 1.16
* remove unneeded part in travis/install.sh
  • Loading branch information
David Bariod committed Feb 13, 2021
1 parent c6da052 commit 6a61186
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ git:
depth: 1
env:
- GO111MODULE=on
go: 1.15.x
go: 1.16.x
os: linux
install:
- ./travis/install.sh
Expand Down
9 changes: 0 additions & 9 deletions travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,3 @@ set -e
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.15\. ]]; then
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.32.2
fi

# Only do this for go1.12 when modules are on so that it doesn't need to be done when modules are off as well.
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.13\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$GO111MODULE" == "on" ]]; then
GO111MODULE=off go get github.com/dgsb/gox
fi

if [[ "$GO111MODULE" == "on" ]]; then
go mod download
fi

0 comments on commit 6a61186

Please sign in to comment.