From 76cb08a72a06b0c789554fa0a8550b74435f01f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 12 Feb 2019 22:39:47 +0100 Subject: [PATCH] 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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27fff7235..4a35606bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - review - source_check - build + - test variables: JS_LOG: "js-report.txt" @@ -51,3 +52,22 @@ build: - ninja -C build - ninja -C build install <<: *only_default + artifacts: + expire_in: 1 day + paths: + - mutter + - build + +test: + image: registry.gitlab.gnome.org/gnome/gnome-shell/master:v1 + stage: test + before_script: + - ninja -C mutter/build install + script: + - xvfb-run meson test -C build --no-rebuild + <<: *only_default + artifacts: + expire_in: 1 day + paths: + - build/meson-logs/testlog.txt + when: on_failure