git » spf » commit 68eb20a

travis: Update coverage report to coveralls.io

author Alberto Bertogli
2018-03-18 16:58:30 UTC
committer Alberto Bertogli
2018-03-18 16:58:30 UTC
parent 8bc316d29f0aee1df9a3e90418c64967aa4f6363

travis: Update coverage report to coveralls.io

.travis.yml +5 -0

diff --git a/.travis.yml b/.travis.yml
index 0c253ee..11a8f22 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,11 @@ go:
     - stable
     - master
 
+before_install:
+    - go get github.com/mattn/goveralls
+
 script:
     - go test ./...
     - go test -race ./...
+    - go test -v -covermode=count -coverprofile=coverage.out
+    - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN