From aa1d7ecfe93bbb0424223a6659c31669c5a5a1c6 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 18 Oct 2021 03:11:47 +0200 Subject: .build.yml: Enable tests for Ubuntu builds --- .build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index 203b21e..c98949b 100644 --- a/.build.yml +++ b/.build.yml @@ -58,6 +58,9 @@ requires: - libgirepository1.0-dev - valac - systemd + - libgtest-dev + - libdbustest1-dev + - python3-dbusmock variables: - 'CHECKERS=" @@ -103,7 +106,7 @@ build_scripts: - scan-build $CHECKERS ./configure --prefix=/usr --disable-tests --enable-gtk-doc --enable-compile-warnings=maximum - fi - elif [ -e ./CMakeLists.txt ]; then - - if [ ${DISTRO_NAME} == "debian" ];then + - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ];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 @@ -129,7 +132,7 @@ build_scripts: after_scripts: - if [ ${BUILD_TYPE} == "scripts" ];then - XVFB_RUN="$(which xvfb-run || true)" - - if [ ${DISTRO_NAME} == "debian" ];then + - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ];then - if [ -e ./autogen.sh ]; then - ${XVFB_RUN} make check - elif [ -e ./CMakeLists.txt ]; then -- cgit v1.2.3