Fix travis + compiler script (#997 from Stoabrogga/compiler)

Exit compiler script if any statement returns non-zero exit code
This commit is contained in:
Barbz
2018-08-05 19:15:27 +02:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_PATH/includes/includes.sh"

View File

@@ -6,8 +6,8 @@ function comp_clean() {
cd $BUILDPATH
make -f Makefile clean
make clean
make -f Makefile clean || true
make clean || true
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+
cd $CWD
@@ -69,4 +69,4 @@ function comp_build() {
function comp_all() {
comp_clean
comp_build
}
}

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_PATH/includes/includes.sh"