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