From 272d826739d47654db0dd1e882bce057bf16112f Mon Sep 17 00:00:00 2001 From: Ilya Glotov Date: Fri, 27 Oct 2017 19:46:45 +0300 Subject: [PATCH 1/2] Add coveralls tests --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cd259b2..1ae9917 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,7 @@ before_script: - sleep 15 script: - - go test + - go get golang.org/x/tools/cmd/cover + - go get github.com/mattn/goveralls + - go test -v -covermode=count -coverprofile=coverage.out + - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN From 39f3aa9a2506cb72206d32f249d678d638f7579b Mon Sep 17 00:00:00 2001 From: Ilya Glotov Date: Fri, 27 Oct 2017 19:59:58 +0300 Subject: [PATCH 2/2] Simplify goveralls start --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ae9917..8df12da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,4 @@ script: - go get golang.org/x/tools/cmd/cover - go get github.com/mattn/goveralls - go test -v -covermode=count -coverprofile=coverage.out - - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN + - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN