Skip to content

Commit

Permalink
Merge pull request #1 from ipfs/gomod
Browse files Browse the repository at this point in the history
add gomod support // tag v0.0.1.
  • Loading branch information
Kubuxu authored Mar 2, 2019
2 parents fb85b27 + 1abbdfe commit 080776c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
31 changes: 21 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module github.com/ipfs/go-ipfs-pq
2 changes: 1 addition & 1 deletion pq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 080776c

Please sign in to comment.