mirror of
https://github.com/libp2p/go-reuseport.git
synced 2025-09-26 19:01:11 +08:00
Update Travis CI to use standard test script. Add basic Makefile.
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -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
11
Makefile
Normal 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
3
codecov.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
coverage:
|
||||
range: "50...100"
|
||||
comment: off
|
Reference in New Issue
Block a user