Skip to content

Commit

Permalink
fix: travis change dep to mod
Browse files Browse the repository at this point in the history
  • Loading branch information
hea9549 committed Jul 23, 2019
1 parent e7180cd commit a9e81e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- '1.10'
- '1.11'

notifications:
email: false
Expand All @@ -27,11 +27,12 @@ before_install:
- go get -u github.com/ipfs/ipfs-update

install:
- dep ensure
- go mod vendor
- ipfs-update install latest
- ipfs init
- ipfs daemon &

env:
- GO111MODULE=on
global:
secure: LhxjmgALk13ZZoKSCwlpVqvqmHq+zAt50JjXpLa7WrrHR8FkGnyGIgkn1VuMbvck6a39Vhn10mKO8GAPqTj4ayejOFvvmXZj/+UXpFc8nvs9cPGCLkzt5qdLEsgE6TEMdfwjLysxN1t3n/Up99FA3ObilKTuXRV1ZUoCa2ZX3Xr9/60A39LY5lAXqwRuCtM4pPhQB3byz2BEctR/zD1HRbceZN6LT+aO1mSwoyOwFgYUVj0MubhfympokxlwqMIqG1B8g0hKakkf5gKIMaJMn07KxwyPCq3fSVUgbpWVdRRh8xExGhRtT4huc0tUrSD0yXYbmnnb3D/e+tLS3//3rkGrGk1GYSwdCbYcO5oUjBKES+ydzwgIpvVsw80M5fAUxE8tdIAdCTiDdMbovN0YJk56NSsfkASTLbGevQrDGkhm9q4Jk9NUCaKyFu39nkfjaL4vKJngAVEbO5gEXIYP3qdCpogf2VWXcgOKse7FezaPfrxM2fWY6ene4sOuy1EXSkdoOUNxWPAtBd39bzRbO9uy9176Psjp9uF0DvgzHl5ukC9PsBE8Xkt/Fw1IUJ9OuELUZxKiPek99R8DipjAs/pDFHY+QykWcyaHblgskxIqODYjWSfiYGzVsO9E1IBsAz6w3iazYr8nd7GLm8q7+/648tJopca4GKAQXHiXjYY=
4 changes: 2 additions & 2 deletions travis/run_on_non_pull_requests
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ if [ $? -ne 0 ]; then
exit 1
fi

go test -p 1 ./...
go test -p 1 -v -mod=vendor ./...

if [ $? -ne 0 ]; then
echo "go test fail" >&2
exit 1
fi

go test -p 1 ./... -covermode=count -coverprofile=coverage.out
go test -p 1 -v -mod=vendor ./... -covermode=count -coverprofile=coverage.out

if [ $? -ne 0 ]; then
echo "go test coverage fail" >&2
Expand Down
2 changes: 1 addition & 1 deletion travis/run_on_pull_requests
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ $? -ne 0 ]; then
exit 1
fi

go test -p 1 ./...
go test -p 1 -v -mod=vendor ./...

if [ $? -ne 0 ]; then
echo "go test fail" >&2
Expand Down

0 comments on commit a9e81e3

Please sign in to comment.