From c17a3cb0ceec44c10bc84d05f0d81f08894c792c Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 27 Nov 2014 12:42:13 +0100 Subject: [PATCH] chain coverage report & submission prevent coverage results from being submitted to coveralls if when the build fails --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebb6319690..d09cbcdb09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,9 +19,7 @@ before_script: # - go vet ./... # - go test -race ./... script: - - ./gocoverage.sh -after_script: - - goveralls -coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN + - ./gocoverage.sh && goveralls -coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN env: - secure: "U2U1AmkU4NJBgKR/uUAebQY87cNL0+1JHjnLOmmXwxYYyj5ralWb1aSuSH3qSXiT93qLBmtaUkuv9fberHVqrbAeVlztVdUsKAq7JMQH+M99iFkC9UiRMqHmtjWJ0ok4COD1sRYixxi21wb/JrMe3M1iL4QJVS61iltjHhVdM64="