ci: standardize

* Add makfile
* Use standard CI scripts.
This commit is contained in:
Steven Allen
2018-11-27 18:44:08 -08:00
parent 5b7719f2f5
commit 916e8af3d6
2 changed files with 27 additions and 16 deletions

View File

@@ -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"

13
Makefile Normal file
View File

@@ -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 ./...