travis & README: add coveralls coverage report

Also, don't use sudo for the entire test script
This commit is contained in:
Stefan Junker
2016-03-04 20:19:26 +01:00
parent cde7088cbe
commit c1ee5d00df
3 changed files with 25 additions and 4 deletions

View File

@ -7,13 +7,18 @@ go:
- 1.6
env:
- TOOLS_CMD=golang.org/x/tools/cmd
global:
- TOOLS_CMD=golang.org/x/tools/cmd
- PATH=$GOROOT/bin:$PATH
install:
- go get ${TOOLS_CMD}/vet
- go get ${TOOLS_CMD}/cover
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
script:
- sudo -E /bin/bash -c 'PATH=$GOROOT/bin:$PATH ./test'
- ./test
notifications:
email: false