Fail the build early if cmake cannot generate the Makefiles.

This commit is contained in:
Omer Katz 2015-12-31 12:32:17 +02:00
parent 0cc5974b11
commit 52e287a8c9

View File

@ -84,6 +84,8 @@ before_script:
- ccache -s
- sed -i "s/-march=native//" CMakeLists.txt
- mkdir build
script:
- >
eval "ARCH_FLAGS=\${ARCH_FLAGS_${ARCH}}" ;
(cd build && cmake
@ -93,8 +95,6 @@ before_script:
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS"
-DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS
..)
script:
- cd build
- make tests
- make examples