summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-10-07 10:52:13 +0300
committerCarlos Soriano <csoriano1618@gmail.com>2018-10-09 07:29:41 +0000
commit182fef9c94985a1e26f7b7f94b205528ec806c76 (patch)
treec8a20e1c852cfcda38f5c24334e6a64d00c596e6 /.gitlab-ci.yml
parentfaec8c47bc702d8e8419556b2359ae2bf5a110aa (diff)
downloadnautilus-182fef9c94985a1e26f7b7f94b205528ec806c76.tar.gz
CI: Do additional setup before running tests
Setting LANG and NO_AT_BRIDGE will prevent warnings about LANG not being set (obviously) (Tracker), and about the a11y bus not being up, which we don’t necessarily need to be able to test things. Starting a D-Bus session before running tests ensures that dbus-launch doesn’t croak when Tracker tries to reach the SPARQL backend, because of missing X11 support.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 63a6ae3ac..63f268675 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -162,7 +162,15 @@ 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
+ # 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}
artifacts: