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
This commit is contained in:
Florian Müllner 2019-02-12 22:39:47 +01:00 committed by Georges Basile Stavracas Neto
parent 2d4989e937
commit 76cb08a72a

View File

@ -2,6 +2,7 @@ stages:
- review - review
- source_check - source_check
- build - build
- test
variables: variables:
JS_LOG: "js-report.txt" JS_LOG: "js-report.txt"
@ -51,3 +52,22 @@ build:
- ninja -C build - ninja -C build
- ninja -C build install - ninja -C build install
<<: *only_default <<: *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