Skip to content

Commit 63f0870

Browse files
committed
update travis tests to be aware of gomod
1 parent 5661c29 commit 63f0870

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,15 @@ script:
4444
make get-deps;
4545
make unit-no-verify;
4646
else
47-
if [ $TRAVIS_GO_VERSION == "1.13.x" ] ||
48-
[ $TRAVIS_GO_VERSION == "tip" ]; then
47+
if [ ! -z $(go env GOMOD) ] ||
4948
make ci-test;
5049
else
50+
if [ $TRAVIS_GO_VERSION == "1.12.x" ] ||
51+
[ $TRAVIS_GO_VERSION == "1.11.x" ] ||
52+
[ $TRAVIS_GO_VERSION == "1.10.x" ]; then
53+
make get-deps-x-tests;
54+
fi
55+
5156
make get-deps;
5257
make unit-old-go-race-cover;
5358
fi

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,15 @@ vet:
201201
################
202202
# Dependencies #
203203
################
204+
get-deps
204205
get-deps:
205206
@echo "getting pre go module dependnecies"
206207
go get github.com/jmespath/go-jmespath
207208

209+
get-deps-x-tests:
210+
@echo "go get SDK testing golang.org/x dependencies"
211+
go get golang.org/x/net/http2
212+
208213
##############
209214
# Benchmarks #
210215
##############

0 commit comments

Comments
 (0)