summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2018-12-11 10:44:49 +0000
committerEric Engestrom <eric.engestrom@intel.com>2018-12-11 17:48:35 +0000
commit239f7925bdebca2f1658551a97d44beec957389e (patch)
tree4441c628f24efb1553944be2d523826c6719ce93
parent9ba8619702a6b540c8751c40027e3d4323b14592 (diff)
downloadkmscube-239f7925bdebca2f1658551a97d44beec957389e.tar.gz
gitlab-ci: add meson build
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
-rw-r--r--.gitlab-ci.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 04b8758..61a1007 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,14 +1,37 @@
+.artifacts-meson: &artifacts-meson
+ when: always
+ paths:
+ - _build/meson-logs
+
.artifacts-autotools: &artifacts-autotools
when: always
paths:
- _build/*.log
+.meson-build: &meson-build
+ - meson _build -D auto_features=enabled
+ - ninja -C _build
+
.autotools-build: &autotools-build
- mkdir _build
- cd _build
- ../autogen.sh
- make
+latest-meson:
+ stage: build
+ image: base/archlinux:latest
+ artifacts: *artifacts-meson
+ before_script:
+ - pacman -Syu --noconfirm --needed
+ base-devel
+ meson
+ libdrm
+ mesa
+ gstreamer
+ gst-plugins-base
+ script: *meson-build
+
latest-autotools:
stage: build
image: base/archlinux:latest
@@ -23,6 +46,35 @@ latest-autotools:
git # autogen.sh depends on git
script: *autotools-build
+oldest-meson:
+ stage: build
+ image: debian:stable
+ artifacts: *artifacts-meson
+ before_script:
+ - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
+ 'path-exclude=/usr/share/doc/*'
+ 'path-exclude=/usr/share/man/*'
+ - printf > /usr/sbin/policy-rc.d "%s\n"
+ '#!/bin/sh'
+ 'exit 101'
+ - chmod +x /usr/sbin/policy-rc.d
+ - apt-get update
+ - apt-get -y --no-install-recommends install
+ build-essential
+ pkg-config
+ libdrm-dev
+ libgbm-dev
+ libegl1-mesa-dev
+ libgles2-mesa-dev
+ libgstreamer1.0-dev
+ gstreamer1.0-plugins-base
+ gstreamer1.0-plugins-base-apps
+ ninja-build
+ python3 python3-pip
+ - pip3 install wheel setuptools
+ - pip3 install meson==0.47
+ script: *meson-build
+
oldest-autotools:
stage: build
image: debian:stable