From 4831c6e0a3ffb330788285831ff4cfb0f3ce838d Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Mon, 17 Aug 2020 11:00:07 -0500 Subject: [PATCH] travis: Run coveralls after success Fix the following error: ``` Bad response status from coveralls: 422 {"message":"service_job_id (717167073) must be unique for Travis Jobs not supplying a Coveralls Repo Token","error":true} The command "$GOPATH/bin/goveralls -v -service=travis-ci" exited with 1. ``` fixes #135 Signed-off-by: Julio Montes --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 162aa50420..662abd1006 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,5 +21,7 @@ before_install: script: - go env - - $GOPATH/bin/goveralls -v -service=travis-ci - gometalinter --tests --vendor --disable-all --enable=misspell --enable=vet --enable=ineffassign --enable=gofmt --enable=gocyclo --cyclo-over=15 --enable=golint --enable=errcheck --enable=deadcode --enable=staticcheck -enable=gas ./... + +after_success: + - $GOPATH/bin/goveralls -repotoken $COVERALLS_TOKEN -v -service=travis-ci