[mutter] Add .gitlab-ci.yml for build testing
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Add .gitlab-ci.yml for build testing
- Date: Wed, 7 Nov 2018 11:27:09 +0000 (UTC)
commit a8e9f46ed856d2719a29dcb460ea4386833e62a1
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Jun 14 21:01:35 2018 +0200
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(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]