[gnome-shell/wip/fmuellner/ci-test] ci: Add test stage
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/ci-test] ci: Add test stage
- Date: Tue, 12 Feb 2019 23:15:51 +0000 (UTC)
commit c8ccb1a48aa5c0f2aa9e8f5372cd800339b065c2
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 12 22:39:47 2019 +0100
ci: Add test stage
We never gained a proper test suite, but run at least the tests we
have.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408
.gitlab-ci.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2be3bce8f..39a14f7b2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
stages:
- source_check
- build
+ - test
variables:
JS_LOG: "js-report.txt"
@@ -44,3 +45,24 @@ build:
- meson . build -Dbuiltype=debugoptimized
- ninja -C build
- ninja -C build install
+ artifacts:
+ expire_in: 1 day
+ paths:
+ - mutter
+ - build
+
+test:
+ image: registry.gitlab.gnome.org/gnome/mutter/master:v1
+ stage: test
+ before_script:
+ - dnf builddep -y gnome-shell
+ - dnf remove -y mutter
+ - dnf install -y xorg-x11-server-Xvfb
+ - ninja -C mutter/build install
+ script:
+ - xvfb-run meson test -C build --no-rebuild
+ artifacts:
+ expire_in: 1 day
+ paths:
+ - build/meson-logs/testlog.txt
+ when: on_failure
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]