Commit eb7107a2 authored by Steven Allen's avatar Steven Allen

use standard travis-ci scripts and enable sudo

This should fix CI.

Supersedes #34.
parent 4ce984ee
os: os:
- linux - linux
language: go sudo: true
sudo: false language: go
go: go:
- 1.7 - 1.9.x
install: install:
- make deps - make deps
script: script:
- make test - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
cache: cache:
directories: directories:
- $GOPATH/src/gx - $GOPATH/src/gx
notifications:
email: false
env: GOTFLAGS="-race"
export PATH := bin:$(PATH) export IPFS_API ?= v04x.ipfs.io
deps: gxbins gx:
bin/gx install --global go get -u github.com/whyrusleeping/gx
bin/gx-go rewrite go get -u github.com/whyrusleeping/gx-go
publish: deps: gx
bin/gx-go rewrite --undo gx --verbose install --global
bin/gx publish gx-go rewrite
test: deps
go test -race -cpu=5 -v ./...
gxbins: bin/gx-v0.6.0 bin/gx-go-v1.2.0
bin/gx-v0.6.0:
mkdir -p bin
./bin/dist_get gx bin/gx-v0.6.0 v0.6.0
ln -s gx-v0.6.0 bin/gx
bin/gx-go-v1.2.0:
mkdir -p bin
./bin/dist_get gx-go bin/gx-go-v1.2.0 v1.2.0
ln -s gx-go-v1.2.0 bin/gx-go
clean:
rm -f bin/gx*
rm -rf bin/tmp
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