aboutsummaryrefslogtreecommitdiff
path: root/.travis
diff options
context:
space:
mode:
authorJulian Fleischer <tirednesscankill@warhog.net>2018-08-03 16:07:53 +0200
committerJulian Fleischer <tirednesscankill@warhog.net>2018-08-27 12:23:25 +0200
commit86d34f0e657e039843ff264358e77ffb2763803f (patch)
tree2a3382305dc52dbb7aaad9fa101954b43f6b5897 /.travis
parent4f2f88c7b08d3bf724720ae2779fbfc39061643d (diff)
abort script in END_FOLD on non-zero exit code
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/before_install.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis/before_install.sh b/.travis/before_install.sh
index 800d490abb..8026a96f89 100755
--- a/.travis/before_install.sh
+++ b/.travis/before_install.sh
@@ -18,6 +18,8 @@ BEGIN_FOLD () {
END_FOLD () {
RET=$?
echo "travis_fold:end:${CURRENT_FOLD_NAME}"
- return $RET
+ if [ $RET != 0 ]; then
+ echo "${CURRENT_FOLD_NAME} failed with status code ${RET}"
+ fi
}