From f07cb32bfb18a9dea376ce8af71c2792f2ecc1ab Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 30 Oct 2017 00:58:30 +0100 Subject: [PATCH] Added Coverage deployment --- travisci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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