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
This commit is contained in:
Jonas Ådahl 2018-06-14 21:01:35 +02:00 committed by Georges Basile Stavracas Neto
parent fe78467815
commit a8e9f46ed8
2 changed files with 22 additions and 0 deletions

11
.gitlab-ci.yml Normal file
View File

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

11
.gitlab-ci/Dockerfile Normal file
View File

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