[nautilus/wip/ernestask/leak-plugging] CI: Use script to run tests
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/leak-plugging] CI: Use script to run tests
- Date: Sun, 7 Oct 2018 07:48:39 +0000 (UTC)
commit 00bd0c793c59636583910cbce84fc9b04894790b
Author: Ernestas Kulik <ernestask gnome org>
Date: Sat Oct 6 20:46:11 2018 +0300
CI: Use script to run tests
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 ab2a20c6c..c123e57ff 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,7 +33,7 @@ flatpak:
- 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 meson test -C _build
+ - 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]