Run unit tests on gitlab ci

master
Linus Jahn 2020-08-19 18:26:35 +02:00
parent 1bf5784fb4
commit 4246aa32ec
No known key found for this signature in database
GPG Key ID: 4663231A91A1E27B
1 changed files with 2 additions and 0 deletions

View File

@ -24,10 +24,12 @@ elif [[ ${BUILD_SYSTEM} == "cmake" ]]; then
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DI18N=1 \
-DBUILD_TESTS=ON \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER:-"g++"}
cmake --build .
CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target test
else
echo "Unknown platform or build system!"
exit 1