From 63128f5dd36a6c20c0f2d1c65eb4390d2590a273 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 2 Mar 2019 18:12:41 +0100 Subject: [PATCH 1/2] add gomod support // tag v0.0.1. License: MIT Signed-off-by: Jakub Sztandera --- .travis.yml | 31 +++++++++++++++++++++---------- go.mod | 1 + 2 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 go.mod diff --git a/.travis.yml b/.travis.yml index 2bf34b5..4cfe98c 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 0000000..28b98ba --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module github.com/ipfs/go-ipfs-pq From 1abbdfe34bb833c11d4315c38b11edf1ebd42407 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 2 Mar 2019 19:17:30 +0100 Subject: [PATCH 2/2] Fix test License: MIT Signed-off-by: Jakub Sztandera --- pq_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pq_test.go b/pq_test.go index 1c333f8..ab8b9ef 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) {