From 48e6fd3955e206f3b00ace9ca8ace8a1e870edee Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 19 Jan 2020 23:37:36 +1100 Subject: [PATCH] travis: added error handling in build script --- .travis/script.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis/script.sh b/.travis/script.sh index ad6e3f5d0..e833de47a 100644 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -8,6 +8,12 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # Make make -j$(sysctl -n hw.ncpu) + # Handle compile failure + if [ "$?" != "0" ] + then + exit 1 + fi + BUNDLE_PATH=$(find . -name "Olive.app") echo Found app at: $BUNDLE_PATH @@ -30,6 +36,12 @@ elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then # Make make -j$(nproc) + # Handle compile failure + if [ "$?" != "0" ] + then + exit 1 + fi + # Use `make install` on `appdir` to place files in the correct place make DESTDIR=appdir -j$(nproc) install