Commit 01b78d2d authored by Steven Allen's avatar Steven Allen

ci: modernize

parent 0d9848d6
sudo: false sudo: false
language: go language: go
go: go:
- 1.9 - 1.11.x
install: before_install:
- go get github.com/whyrusleeping/gx - make deps
- go get github.com/whyrusleeping/gx-go
script: script:
- make test - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
...@@ -18,4 +19,4 @@ cache: ...@@ -18,4 +19,4 @@ cache:
- $GOPATH/src/gx - $GOPATH/src/gx
notifications: notifications:
email: false email: false
all: deps
gx: gx:
go get github.com/whyrusleeping/gx go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go go get github.com/whyrusleeping/gx-go
deps: gx
deps: gx
gx --verbose install --global gx --verbose install --global
gx-go rewrite gx-go rewrite
test: deps
gx test -v -race -coverprofile=coverage.txt -covermode=atomic .
rw:
gx-go rewrite
rwundo:
gx-go rewrite --undo
publish: rwundo
gx publish
.PHONY: all gx deps test rw rwundo publish
publish:
gx-go rewrite --undo
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