diff --git a/.travis.yml b/.travis.yml index 7462824..303daab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,23 @@ -os: - - linux - language: go +sudo: false + +os: + - linux go: - - 1.10.2 + - 1.11.x install: - - go get -u github.com/whyrusleeping/gx - - go get -u github.com/whyrusleeping/gx-go - - gx install - + - make deps script: - - gx-go rewrite - - go test -race -coverprofile=unittest.coverprofile -covermode=atomic . - - -after_success: - - bash <(curl -s https://codecov.io/bash) -f unittest.coverprofile -F unittest + - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh) cache: - directories: - - $GOPATH/src/gx + directories: + - $GOPATH/src/gx + +notifications: + email: false + +env: GOTFLAGS="-race" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..411b4a8 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +test: deps + go test -race -v ./... + +export IPFS_API ?= v04x.ipfs.io + +gx: + go get -u github.com/whyrusleeping/gx + go get -u github.com/whyrusleeping/gx-go + +deps: gx + gx --verbose install --global + gx-go rewrite + go get -t ./...