gitlab-ci: run tests too

This commit is contained in:
Marco Trevisan (Treviño) 2018-11-14 02:19:27 -06:00
parent 0503ecaf84
commit 9056fb00b0
3 changed files with 40 additions and 1 deletions

View File

@ -2,10 +2,45 @@ image: registry.gitlab.gnome.org/gnome/mutter/master:v1
stages:
- build
- test
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
- meson test -v -C build --suite headless
# artifacts:
# paths:
# - build
# test-cogl:
# stage: test
# dependencies:
# - build-mutter
# artifacts:
# paths:
# - build
# script:
# - meson test -v -C build --suite cogl-headless
# test-clutter:
# stage: test
# dependencies:
# - build-mutter
# artifacts:
# paths:
# - build
# script:
# - meson test -v -C build --suite clutter-headless
# test-mutter:
# stage: test
# dependencies:
# - build-mutter
# artifacts:
# paths:
# - build
# script:
# - meson test -v -C build --suite mutter-headless

View File

@ -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

View File

@ -89,6 +89,7 @@ foreach test : clutter_conform_tests
suite: ['clutter-headless', 'clutter-headless/conform', 'headless'],
env: test_env,
is_parallel: false,
timeout: 60,
)
endif
endforeach