Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Update Travis CI to use standard test script and go 1.9.x. Add Makefile.
Browse files Browse the repository at this point in the history
This also switches from goveralls to codecov.
  • Loading branch information
kevina committed Nov 17, 2017
1 parent d863b45 commit 12ababb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ language: go
sudo: false

go:
- 1.8
- 1.9.x

before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get github.com/whyrusleeping/gx
- go get github.com/whyrusleeping/gx-go

install:
- gx --verbose install --global
- gx-go rewrite
- make deps

script:
- $HOME/gopath/bin/goveralls -service="travis-ci"
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)

cache:
directories:
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage:
range: "50...100"
comment: off

0 comments on commit 12ababb

Please sign in to comment.