[mutter/wip/3v1n0/run-tests-in-ci: 14/14] gitlab-ci: run tests too
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/3v1n0/run-tests-in-ci: 14/14] gitlab-ci: run tests too
- Date: Wed, 14 Nov 2018 08:21:05 +0000 (UTC)
commit 87b41e4b733764462ef02acbc6b30d353b57f860
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Nov 14 02:19:27 2018 -0600
gitlab-ci: run tests too
.gitlab-ci.yml | 17 ++++++++++++++++-
.gitlab-ci/Dockerfile | 3 +++
2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df15a050d..8a8a77085 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,21 @@ stages:
build-mutter:
stage: build
script:
- - meson . build -Degl_device=true -Dwayland_eglstream=true
+ - meson . build -Degl_device=true -Dwayland_eglstream=true -Dheadless_tests=enabled
- ninja -C build
- ninja -C build install
+
+test-cogl:
+ dependencies:
+ - build-mutter
+ - meson -C build test --suite cogl-headless
+
+test-clutter:
+ dependencies:
+ - build-mutter
+ - meson -C build test --suite clutter-headless
+
+test-mutter:
+ dependencies:
+ - build-mutter
+ - meson -C build test --suite mutter-headless
diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index eba733c79..541707912 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -7,5 +7,8 @@ RUN dnf -y update && dnf -y upgrade && \
# Until Fedora catches up with meson build-deps
dnf install -y meson xorg-x11-server-Xorg gnome-settings-daemon-devel egl-wayland-devel
xorg-x11-server-Xwayland && \
+# To enable testing headless
+ dnf install -y xorg-x11-server-Xvfb && \
+
dnf install -y intltool redhat-rpm-config make && \
dnf clean all
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]