From 55bb53383b4db77bb2fd30deabfdd6afb67aea82 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Wed, 24 Jul 2019 19:07:20 +0100 Subject: [PATCH] Add Gitlab-CI Signed-off-by: Simon McVittie <smcv@collabora.com> --- .gitlab-ci.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..2c3f297db --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,61 @@ +variables: + DEBIAN_FRONTEND: noninteractive + + SCOUT_DOCKER_REGISTRY: docker.steamos.cloud + SCOUT_DOCKER_IMAGE: steamrt/sdk:scout + SCOUT_APT_SOURCES_FILE: '' + DEVEL_DOCKER_REGISTRY: docker.steamos.cloud + DEVEL_DOCKER_IMAGE: steamos/package-builder:buster + +build:devel: + image: "${DEVEL_DOCKER_REGISTRY}/${DEVEL_DOCKER_IMAGE}" + script: + - | + set -eux + + apt-get -y --no-install-recommends install \ + libglib2.0-dev \ + libxau-dev \ + meson \ + ${NULL+} + + meson _build + ninja -C _build + ninja -C _build install + meson test --verbose -C _build + +build:scout: + image: "${SCOUT_DOCKER_REGISTRY}/${SCOUT_DOCKER_IMAGE}" + script: + - | + set -eux + + if [ -n "${SCOUT_APT_SOURCES_FILE}" ]; then + cp "${SCOUT_APT_SOURCES_FILE}" /etc/apt/sources.list + apt-get -y update + fi + + apt-get -y --no-install-recommends install \ + bubblewrap \ + libcapsule0 \ + libcapsule-tools-relocatable \ + libglib2.0-dev \ + libxau-dev \ + meson \ + ${NULL+} + + meson \ + --prefix="$(pwd)/_build/relocatable-install" \ + -Dpython=python3.5 \ + -Drelocatable=true \ + _build + ninja -C _build + ninja -C _build install + meson test --verbose -C _build + +# Artifacts are currently disabled because uploading them to the +# coordinator results in HTTP 413 Request Entity Too Large. +# artifacts: +# paths: +# - _build/pressure-vessel-*-bin.tar.gz +# - _build/pressure-vessel-*-bin+src.tar.gz -- GitLab