Skip to content

Commit 8903c47

Browse files
CodyDWJonesCody Jones
and
Cody Jones
authored
Fix failing Travis CI jobs (#494)
* Fix building with Go 1.12 in Travis CI Travis clones the source code under GOPATH and uses GO11MODULE=auto by default, which disables modules when Go 1.12 is being used. This is now a breaking problem because the master of github.com/stretchr/testify/assert requires Go 1.13. Using a specific version of assert requires either vendoring all dependencies or forcing Go 1.12 to use modules. * Fix path to a distribution public key that no longer exists Co-authored-by: Cody Jones <[email protected]>
1 parent 3d6444f commit 8903c47

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.travis.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ go:
77

88
go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v6
99

10-
install: go get -t ./...
11-
1210
before_script:
13-
- source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
14-
- wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
11+
- source /etc/lsb-release && echo "deb https://download.rethinkdb.com/repository/ubuntu-$TRAVIS_DIST $TRAVIS_DIST main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
12+
- wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo apt-key add -
1513
- sudo apt-get update
1614
- sudo apt-get install rethinkdb
1715
- rethinkdb > /dev/null 2>&1 &
@@ -20,6 +18,7 @@ before_script:
2018
- rethinkdb --port-offset 3 --directory rethinkdb_data3 --join localhost:29016 > /dev/null 2>&1 &
2119

2220
script:
23-
- go test -race .
24-
- go test -tags='cluster' -short -race -v ./...
25-
- GOMODULE111=off go test .
21+
- GO111MODULE=on go test -race .
22+
- GO111MODULE=on go test -tags='cluster' -short -race -v ./...
23+
- GO111MODULE=on go test .
24+

go.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ require (
2323
gopkg.in/yaml.v2 v2.2.8 // indirect
2424
)
2525

26-
go 1.14
26+
go 1.12
27+

0 commit comments

Comments
 (0)