[mutter/wip/3v1n0/run-tests-in-ci] gitlab-ci: run tests too



commit 20e33c5a4c978dff6781e03031f7947687259645
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        | 20 +++++++++++++++++++-
 .gitlab-ci/Dockerfile |  3 +++
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df15a050d..741b8dc98 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,24 @@ 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
+  script:
+    - meson -C build test --suite cogl-headless
+
+test-clutter:
+  dependencies:
+    - build-mutter
+  script:
+    - meson -C build test --suite clutter-headless
+
+test-mutter:
+  dependencies:
+    - build-mutter
+  script:
+    - 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]