travis: added error handling in build script

This commit is contained in:
itsmattkc
2020-01-19 23:37:36 +11:00
parent 52f060418e
commit 48e6fd3955
+12
View File
@@ -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