travis: force go modules support in $GOPATH, cache modules directory

This commit is contained in:
Olaoluwa Osuntokun 2018-11-28 17:18:21 -08:00
parent e2e73379c7
commit f65b1a4d6e
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -3,6 +3,7 @@ cache:
directories: directories:
- vendor/ - vendor/
- $GOCACHE - $GOCACHE
- $GOPATH/pkg/mod
- $GOPATH/src/github.com/btcsuite - $GOPATH/src/github.com/btcsuite
- $GOPATH/src/github.com/golang - $GOPATH/src/github.com/golang
- $GOPATH/src/gopkg.in/alecthomas - $GOPATH/src/gopkg.in/alecthomas
@ -26,6 +27,8 @@ install:
- export PATH=$PATH:$PWD/linux-amd64/ - export PATH=$PATH:$PWD/linux-amd64/
script: script:
- env GO111MODULE=on
# Common for all builds. # Common for all builds.
- make btcd - make btcd