From 65fd971c85c415b114506fa566f4de13c1bc96cd Mon Sep 17 00:00:00 2001 From: deadprogram Date: Thu, 23 Feb 2017 11:51:16 +0100 Subject: [PATCH] test: correct Travis tests suite to indicate failure by returning proper exit code Signed-off-by: deadprogram --- ci/travis.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/travis.sh b/ci/travis.sh index 9acd8671..7b93bbaf 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -8,6 +8,10 @@ go test -i ./... for package in "${PACKAGES[@]}" do go test -coverprofile=tmp.cov gobot.io/x/$package + if [ $? -ne 0 ] + then + EXITCODE=1 + fi if [ -f tmp.cov ]; then cat tmp.cov >> coverage.txt rm tmp.cov