add scripts for coverall

This commit is contained in:
Huan Du
2017-12-31 01:18:50 +08:00
parent 49c988a55e
commit 91c307bc49
+6
View File
@@ -1 +1,7 @@
language: go
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
script:
- go test -v -covermode=count -coverprofile=coverage.out
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN