Skip to content

Commit c173ec7

Browse files
postablesStebalien
authored andcommitted
Fix Travis Builds (ipfs#184)
fix tests and CI build.
1 parent 00fb47e commit c173ec7

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@ services:
1111

1212
env:
1313
global:
14+
- GO111MODULE=on
1415
- GOTFLAGS="-race"
1516
- IPFS_PATH=/tmp/ipfs
1617
matrix:
17-
- BUILD_DEPTYPE=gx
1818
- BUILD_DEPTYPE=gomod
1919

2020
before_install:
2121
- docker pull ipfs/go-ipfs:master
2222
- mkdir /tmp/ipfs && chmod 0777 /tmp/ipfs
23-
- docker run -d -v /tmp/ipfs:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:master --enable-pubsub-experiment
24-
25-
26-
# disable travis install
23+
- docker run -d -v /tmp/ipfs:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:master "daemon" "--enable-namesys-pubsub"
24+
2725
install:
28-
- true
26+
- go mod download
27+
28+
before_script:
29+
- go vet ./...
2930

3031
script:
31-
- go get -d -t github.com/cheekybits/is/... # remove with gx
32+
- go get -d github.com/cheekybits/is/... # remove with gx
3233
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
3334

3435

shell_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestAdd(t *testing.T) {
3030
is.Equal(mhash, "QmUfZ9rAdhV5ioBzXKdUTh2ZNsz9bzbkaLVyQ8uc8pj21F")
3131
mhash, err = s.Add(bytes.NewBufferString("Hello IPFS Shell tests"), Hash("sha3-256"))
3232
is.Nil(err)
33-
is.Equal(mhash, "zb2wwqxjxosf8GKEZCwAWSFZ879XFNca3De5yAoh5b2axAffc")
33+
is.Equal(mhash, "bafkrmidz7cuqruceo2hocadpdjppcsi7qw6dypz3jhsae2qda6sexdk6z4")
3434
}
3535

3636
func TestRedirect(t *testing.T) {
@@ -330,7 +330,7 @@ func TestDagPut(t *testing.T) {
330330

331331
c, err := s.DagPut(`{"x": "abc","y":"def"}`, "json", "cbor")
332332
is.Nil(err)
333-
is.Equal(c, "zdpuAt47YjE9XTgSxUBkiYCbmnktKajQNheQBGASHj3FfYf8M")
333+
is.Equal(c, "bafyreidrm3r2k6vlxqp2fk47sboeycf7apddib47w7cyagrajtpaxxl2pi")
334334
}
335335

336336
func TestDagPutWithOpts(t *testing.T) {
@@ -339,7 +339,7 @@ func TestDagPutWithOpts(t *testing.T) {
339339

340340
c, err := s.DagPutWithOpts(`{"x": "abc","y":"def"}`, options.Dag.Pin("true"))
341341
is.Nil(err)
342-
is.Equal(c, "zdpuAt47YjE9XTgSxUBkiYCbmnktKajQNheQBGASHj3FfYf8M")
342+
is.Equal(c, "bafyreidrm3r2k6vlxqp2fk47sboeycf7apddib47w7cyagrajtpaxxl2pi")
343343
}
344344

345345
func TestStatsBW(t *testing.T) {

0 commit comments

Comments
 (0)