Update Travis CI to use standard test script. Add basic Makefile.

This commit is contained in:
Kevin Atkinson
2017-11-17 02:25:37 -05:00
parent 2833484e67
commit 4553c1f436
3 changed files with 20 additions and 6 deletions

View File

@@ -6,15 +6,13 @@ os:
language: go
go:
- 1.9
- 1.9.x
install:
- go get github.com/whyrusleeping/gx
- go get github.com/whyrusleeping/gx-go
- gx install --global
before_install:
- make deps
script:
- gx test -race -cpu=5 -v ./...
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
cache:
directories:
@@ -22,3 +20,5 @@ cache:
notifications:
email: false
env: GOTFLAGS="-race -cpu=5"

11
Makefile Normal file
View File

@@ -0,0 +1,11 @@
gx:
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
deps: gx
gx --verbose install --global
gx-go rewrite
publish:
gx-go rewrite --undo

3
codecov.yml Normal file
View File

@@ -0,0 +1,3 @@
coverage:
range: "50...100"
comment: off