From a8e9f46ed856d2719a29dcb460ea4386833e62a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 14 Jun 2018 21:01:35 +0200 Subject: [PATCH] Add .gitlab-ci.yml for build testing This adds compilation testing using meson on the gitlab instance. It uses a prebuild image built, described in .gitlab-ci/Dockerfile, based on Fedora 29. The image is build and published by running: cd .gitlab-ci/ docker build -t registry.gitlab.gnome.org/gnome/mutter/master:v1 . docker push registry.gitlab.gnome.org/gnome/mutter/master:v1 Resolves: https://gitlab.gnome.org/GNOME/mutter/merge_requests/132 --- .gitlab-ci.yml | 11 +++++++++++ .gitlab-ci/Dockerfile | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .gitlab-ci/Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..df15a050d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +image: registry.gitlab.gnome.org/gnome/mutter/master:v1 + +stages: + - build + +build-mutter: + stage: build + script: + - meson . build -Degl_device=true -Dwayland_eglstream=true + - ninja -C build + - ninja -C build install diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile new file mode 100644 index 000000000..eba733c79 --- /dev/null +++ b/.gitlab-ci/Dockerfile @@ -0,0 +1,11 @@ +FROM fedora:29 + +RUN dnf -y update && dnf -y upgrade && \ + dnf install -y 'dnf-command(builddep)' && \ + dnf builddep -y mutter && \ + +# 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 && \ + + dnf install -y intltool redhat-rpm-config make && \ + dnf clean all