Skip to content

Commit

Permalink
Merge pull request #90 from cep21/cep21-patch-1
Browse files Browse the repository at this point in the history
Update .travis.yml
  • Loading branch information
cep21 authored Mar 18, 2020
2 parents 6d27f98 + 1255695 commit 3008d05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
- GO111MODULE=on DEP_VERSION="0.5.3"

go:
- "1.14"
- "1.13"
- "1.12"
- "1.11"
Expand All @@ -16,15 +17,15 @@ cache:
- $GOPATH/pkg/mod

install:
- if [ $TRAVIS_GO_VERSION == "1.13" ]; then
- if [ $TRAVIS_GO_VERSION == "1.14" ]; then
cd v3 && make setup_ci && cd -;
else
curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep;
chmod +x $GOPATH/bin/dep;
fi

script:
- if [ $TRAVIS_GO_VERSION == "1.13" ]; then
- if [ $TRAVIS_GO_VERSION == "1.14" ]; then
go build -mod=readonly ./... && cd v3 && go build -mod=readonly ./... && cd -;
go mod verify;
go mod vendor && GO111MODULE=off PATH=$TRAVIS_BUILD_DIR/bin:$PATH make lint;
Expand All @@ -35,4 +36,4 @@ script:
- cd v3
- git stash; make build
- make test
- "[ $TRAVIS_GO_VERSION != '1.13' ] || make upload_coverage"
- "[ $TRAVIS_GO_VERSION != '1.14' ] || make upload_coverage"

0 comments on commit 3008d05

Please sign in to comment.