travis: ensure sub-script fails on any error
This commit is contained in:
parent
2346927bbc
commit
6e3a30bd8f
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cmake --version
|
# Make the script fails on any command error
|
||||||
|
set -e
|
||||||
|
|
||||||
# Install cpp-coveralls only if OS==linux and CC==gcc
|
# Install cpp-coveralls only if OS==linux and CC==gcc
|
||||||
if [ "${TRAVIS_COVERALLS}" = "ON" ] \
|
if [ "${TRAVIS_COVERALLS}" = "ON" ] \
|
||||||
@ -16,6 +17,7 @@ echo TRAVIS_COVERALLS=$TRAVIS_COVERALLS
|
|||||||
|
|
||||||
# CMake
|
# CMake
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
cmake --version
|
||||||
cmake .. -G "Unix Makefiles" \
|
cmake .. -G "Unix Makefiles" \
|
||||||
-DCMAKE_DEBUG_POSTFIX=_d \
|
-DCMAKE_DEBUG_POSTFIX=_d \
|
||||||
-DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE \
|
||||||
|
Loading…
Reference in New Issue
Block a user