diff --git a/.travis.yml b/.travis.yml index 2bf34b5c43a8ce6e2e07090b3b1653a5e58e1d5d..4cfe98c2424d60b3a50d870dc0da5df2ee9243ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,32 @@ -sudo: false +os: + - linux language: go + go: - - 1.9 - + - 1.11.x + +env: + global: + - GOTFLAGS="-race" + matrix: + - BUILD_DEPTYPE=gx + - BUILD_DEPTYPE=gomod + + +# disable travis install install: - - go get github.com/whyrusleeping/gx - - go get github.com/whyrusleeping/gx-go + - true + script: - - make test - -after_success: - - bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh) + cache: directories: - $GOPATH/src/gx + - $GOPATH/pkg/mod + - $HOME/.cache/go-build notifications: -email: false + email: false diff --git a/go.mod b/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..28b98ba0ddfb9ffce13432aa8c6fcce6dcf875cf --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module github.com/ipfs/go-ipfs-pq diff --git a/pq_test.go b/pq_test.go index 1c333f8b447d8d98467952e39124c8ac386c0ed4..ab8b9efda1156b5d9aa02d17cfd35b41adcf4d09 100644 --- a/pq_test.go +++ b/pq_test.go @@ -53,7 +53,7 @@ func TestCorrectnessOfPop(t *testing.T) { var priorities []int for q.Len() > 0 { i := q.Pop().(*TestElem).Priority - t.Log("popped %v", i) + t.Logf("popped %v", i) priorities = append(priorities, i) } if !sort.IntsAreSorted(priorities) {