Fix travis + compiler script (#997 from Stoabrogga/compiler)
Exit compiler script if any statement returns non-zero exit code
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
source "$CURRENT_PATH/includes/includes.sh"
|
source "$CURRENT_PATH/includes/includes.sh"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ function comp_clean() {
|
|||||||
|
|
||||||
cd $BUILDPATH
|
cd $BUILDPATH
|
||||||
|
|
||||||
make -f Makefile clean
|
make -f Makefile clean || true
|
||||||
make clean
|
make clean || true
|
||||||
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+
|
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+
|
||||||
|
|
||||||
cd $CWD
|
cd $CWD
|
||||||
@@ -69,4 +69,4 @@ function comp_build() {
|
|||||||
function comp_all() {
|
function comp_all() {
|
||||||
comp_clean
|
comp_clean
|
||||||
comp_build
|
comp_build
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
source "$CURRENT_PATH/includes/includes.sh"
|
source "$CURRENT_PATH/includes/includes.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user