diff --git a/travisci.yml b/travisci.yml index 6551610..93a365d 100644 --- a/travisci.yml +++ b/travisci.yml @@ -1,6 +1,10 @@ language: go go: - 1.9.2 - +env: + - COVERALLS_TOKEN=lhWzILT1WMRgrHXsEhauQOGsoby1nm7DR script: - - go test -v ./... \ No newline at end of file + - go get golang.org/x/tools/cmd/cover + - go get github.com/mattn/goveralls + - go test -v -covermode=count -coverprofile=coverage.out ./... + - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN \ No newline at end of file