ci: standardize
* Add makfile * Use standard CI scripts.
This commit is contained in:
30
.travis.yml
30
.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"
|
||||
|
||||
Reference in New Issue
Block a user