From 4ab1c695a025412f4282c0f2b128c41006864588 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 22 Feb 2017 22:30:06 +0100 Subject: [PATCH] test: only cat test coverage output file whene said file exists Signed-off-by: deadprogram --- ci/travis.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ci/travis.sh b/ci/travis.sh index e4be9696..9acd8671 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -8,10 +8,8 @@ go test -i ./... for package in "${PACKAGES[@]}" do go test -coverprofile=tmp.cov gobot.io/x/$package - if [ $? -ne 0 ] - then - EXITCODE=1 + if [ -f tmp.cov ]; then + cat tmp.cov >> coverage.txt + rm tmp.cov fi - cat tmp.cov >> coverage.txt - rm tmp.cov done