From 6e3a30bd8fe25b56d8db1084e485eadfc4e0ad46 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Fri, 11 Sep 2015 21:44:22 +0200 Subject: [PATCH] travis: ensure sub-script fails on any error --- travis-build-script.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/travis-build-script.sh b/travis-build-script.sh index 65d4dfa..01a0332 100644 --- a/travis-build-script.sh +++ b/travis-build-script.sh @@ -1,6 +1,7 @@ #!/bin/bash -cmake --version +# Make the script fails on any command error +set -e # Install cpp-coveralls only if OS==linux and CC==gcc if [ "${TRAVIS_COVERALLS}" = "ON" ] \ @@ -16,6 +17,7 @@ echo TRAVIS_COVERALLS=$TRAVIS_COVERALLS # CMake mkdir build && cd build +cmake --version cmake .. -G "Unix Makefiles" \ -DCMAKE_DEBUG_POSTFIX=_d \ -DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE \