From 34e808d3b9a322db3908454944c69c1373572f66 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 21 Apr 2021 20:56:22 +0200 Subject: .build.yml: On Debian, actively enable unit tests when building with CMake. --- .build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index 710e89a..af3b24d 100644 --- a/.build.yml +++ b/.build.yml @@ -92,7 +92,11 @@ build_scripts: - NOCONFIGURE=1 ./autogen.sh - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum - elif [ -e ./CMakeLists.txt ]; then - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON + - else + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - fi - else - exit 1 - fi -- cgit v1.2.3