Use ninja for travis-ci builds

This commit is contained in:
Denis Blank 2017-10-03 19:58:27 +02:00
parent 935fd9d32d
commit 40588e4e6e

View File

@ -19,6 +19,7 @@ matrix:
- valgrind - valgrind
- cmake - cmake
- cmake-data - cmake-data
- ninja-build
env: env:
- COMPILER=g++-6 - COMPILER=g++-6
@ -34,6 +35,7 @@ matrix:
- clang-5.0 - clang-5.0
- cmake - cmake
- cmake-data - cmake-data
- ninja-build
env: env:
- COMPILER=clang++-5.0 - COMPILER=clang++-5.0
@ -53,7 +55,7 @@ install:
cd build cd build
# Configure the project and build it # Configure the project and build it
cmake -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Werror" -DCMAKE_BUILD_TYPE=Debug .. cmake -GNinja -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Werror" -DCMAKE_BUILD_TYPE=Debug ..
} }
script: script:
@ -64,19 +66,19 @@ script:
echo "Building with address sanitizer..." echo "Building with address sanitizer..."
CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer" CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
renew_build renew_build
make -j2 ninja
ctest --verbose ctest --verbose
# - UBSan: # - UBSan:
echo "Building with undefined behaviour sanitizer..." echo "Building with undefined behaviour sanitizer..."
CMAKE_CXX_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer" CMAKE_CXX_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer"
renew_build renew_build
make -j2 ninja
ctest --verbose ctest --verbose
else else
# Build an run the tests suite with valgrind # Build an run the tests suite with valgrind
renew_build renew_build
make -j2 ninja
valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes ctest --verbose valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes ctest --verbose
fi fi