aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-21 12:41:15 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-21 16:55:34 +0200
commit656b45e601bd53021103397a2795d7bb102407e7 (patch)
tree8ecae5d33136905ea3cbbb4fc2e8357fa29a8fe2
parentf1eeeb957c1023e379f2a98f3474a620e5228a7f (diff)
downloadayatana-ido-656b45e601bd53021103397a2795d7bb102407e7.tar.gz
ayatana-ido-656b45e601bd53021103397a2795d7bb102407e7.tar.bz2
ayatana-ido-656b45e601bd53021103397a2795d7bb102407e7.zip
.build.yml: Run unit tests in xvfb-run environment (if xvfb-run is $PATH).
-rw-r--r--.build.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.build.yml b/.build.yml
index 24ae85f..d492994 100644
--- a/.build.yml
+++ b/.build.yml
@@ -41,6 +41,8 @@ requires:
- valac
- lcov
- gcovr
+ - xauth
+ - xvfb
ubuntu:
- autopoint
@@ -111,11 +113,12 @@ build_scripts:
after_scripts:
- if [ ${BUILD_TYPE} == "scripts" ];then
+ - XVFB_RUN=$(which xvfb-run)
- if [ ${DISTRO_NAME} == "debian" ];then
- if [ -e ./autogen.sh ]; then
- - make check
+ - ${XVFB_RUN} make check
- elif [ -e ./CMakeLists.txt ]; then
- - make test
+ - ${XVFB_RUN} make test
- fi
- fi
- fi