Unverified Commit 080776c4 authored by Jakub Sztandera's avatar Jakub Sztandera Committed by GitHub

Merge pull request #1 from ipfs/gomod

add gomod support // tag v0.0.1.
parents fb85b278 1abbdfe3
sudo: false os:
- linux
language: go language: go
go: go:
- 1.9 - 1.11.x
env:
global:
- GOTFLAGS="-race"
matrix:
- BUILD_DEPTYPE=gx
- BUILD_DEPTYPE=gomod
# disable travis install
install: install:
- go get github.com/whyrusleeping/gx - true
- go get github.com/whyrusleeping/gx-go
script: script:
- make test - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
after_success:
- bash <(curl -s https://codecov.io/bash)
cache: cache:
directories: directories:
- $GOPATH/src/gx - $GOPATH/src/gx
- $GOPATH/pkg/mod
- $HOME/.cache/go-build
notifications: notifications:
email: false email: false
...@@ -53,7 +53,7 @@ func TestCorrectnessOfPop(t *testing.T) { ...@@ -53,7 +53,7 @@ func TestCorrectnessOfPop(t *testing.T) {
var priorities []int var priorities []int
for q.Len() > 0 { for q.Len() > 0 {
i := q.Pop().(*TestElem).Priority i := q.Pop().(*TestElem).Priority
t.Log("popped %v", i) t.Logf("popped %v", i)
priorities = append(priorities, i) priorities = append(priorities, i)
} }
if !sort.IntsAreSorted(priorities) { if !sort.IntsAreSorted(priorities) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment