Skip to content

Commit

Permalink
Exit with error if build failed (#69)
Browse files Browse the repository at this point in the history
Fixes #51.
  • Loading branch information
havogt authored Nov 21, 2017
1 parent a28605a commit 718a7cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/cscs-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ else
make install -j1
fi

ret=$?
if [ ${ret} -ne 0 ]; then
exit ${ret}
fi


# Run tests
if [ "$ARG_RUN_TESTS" == "true" ]; then
chmod +x run_tests.sh
Expand Down

0 comments on commit 718a7cc

Please sign in to comment.