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:
- linux
language: go
sudo: true
sudo: false
language: go
go:
- 1.7
- 1.9.x
install:
- make deps
script:
- make test
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
cache:
directories:
- $GOPATH/src/gx
notifications:
email: false
env: GOTFLAGS="-race"
export PATH := bin:$(PATH)
export IPFS_API ?= v04x.ipfs.io
deps: gxbins
bin/gx install --global
bin/gx-go rewrite
gx:
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
publish:
bin/gx-go rewrite --undo
bin/gx publish
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
deps: gx
gx --verbose install --global
gx-go rewrite
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