From 12ababb604c31db4433075b5a1ed774d72c0a7a6 Mon Sep 17 00:00:00 2001 From: Kevin Atkinson Date: Fri, 17 Nov 2017 03:18:11 -0500 Subject: [PATCH] Update Travis CI to use standard test script and go 1.9.x. Add Makefile. This also switches from goveralls to codecov. --- .travis.yml | 13 +++---------- Makefile | 11 +++++++++++ codecov.yml | 3 +++ 3 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 Makefile create mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml index 98a3f69..b9449c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2061941 --- /dev/null +++ b/Makefile @@ -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 + diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..5f88a9e --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +coverage: + range: "50...100" +comment: off