diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-10-07 10:52:13 +0300 |
---|---|---|
committer | Carlos Soriano <csoriano1618@gmail.com> | 2018-10-09 07:29:41 +0000 |
commit | 182fef9c94985a1e26f7b7f94b205528ec806c76 (patch) | |
tree | c8a20e1c852cfcda38f5c24334e6a64d00c596e6 /.gitlab-ci.yml | |
parent | faec8c47bc702d8e8419556b2359ae2bf5a110aa (diff) | |
download | nautilus-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.yml | 10 |
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: |