[gnome-builder] CI: Use dbus-run-session when runnting tests



commit 931e2776ec29f6360c6be520c93bbcdcd634a542
Author: Jordan Petridis <jpetridis gnome org>
Date:   Wed Oct 10 09:51:38 2018 +0300

    CI: Use dbus-run-session when runnting tests

 .gitlab-ci.yml | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a4390c11b..5e453da73 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,8 +29,17 @@ flatpak:
         - flatpak build app ninja -C _build install
         - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
         # Run automatic tests inside the Flatpak env
-        # FIXME: Test are failling everything is on fire
-        # - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
+        # Setting LANG to avoid Tracker complaining and falling back to the same value,
+        # and setting NO_AT_BRIDGE, so that atk-bridge isn’t initialized, preventing
+        # annoying warnings that don’t affect the kinds of tests that we run.
+        - |
+          xvfb-run -a -s "-screen 0 1024x768x24" \
+              flatpak build \
+                  --env=LANG=C.UTF-8 \
+                  --env=NO_AT_BRIDGE=1 \
+                  app \
+                  dbus-run-session \
+                  meson test -C _build
         # Generate a Flatpak bundle
         - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
 
@@ -40,7 +49,7 @@ flatpak:
             - _build/meson-logs/meson-log.txt
             - _build/meson-logs/testlog.txt
         expire_in: 30 days
-        
+
     cache:
         paths:
             - .flatpak-builder/downloads/


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