[nautilus/wip/ernestask/leak-plugging: 7/7] CI: Use script to run tests on master manifest



commit 1d9d1c610f673ed3d51ace885adb080eeeb6cd0e
Author: Ernestas Kulik <ernestask gnome org>
Date:   Sun Oct 7 10:52:13 2018 +0300

    CI: Use script to run tests on master manifest
    
    This lets us have a D-Bus session and avoids warnings coming from
    Tracker. Additionally, it stops initialization of atk-bridge with
    GTK+ by setting NO_AT_BRIDGE, which also silences a runtime warning.

 .gitlab-ci.yml    | 2 +-
 ci/test-runner.sh | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dd00e7f35..a4e36037e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -159,7 +159,7 @@ flatpak:master:
         - flatpak build app ninja -C _build install
         - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
         # Run automatic tests inside the Flatpak env
-        - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
+        - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ci/test-runner.sh
         # Generate a Flatpak bundle
         - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
     artifacts:
diff --git a/ci/test-runner.sh b/ci/test-runner.sh
new file mode 100755
index 000000000..78cf8b71e
--- /dev/null
+++ b/ci/test-runner.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+LANG=C.UTF-8 NO_AT_BRIDGE=1 dbus-run-session meson test -C _build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]