From f29b408724e9c41f33673a6f975bb4299bfaebb7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 30 Nov 2020 09:42:42 +1000 Subject: gitlab CI: add a basic build test Based on debian stable because we don't expect this repo to be updated very often, so let's not play catch-up with more frequently updated distributions. Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0aee1fa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml: + +.templates_sha: &template_sha 16f790f93f893394b70d7048fb0e8a981ceaa3c5 # see https://docs.gitlab.com/ee/ci/yaml/#includefile + +include: + - project: 'freedesktop/ci-templates' + ref: *template_sha + file: '/templates/debian.yml' + +stages: + - prep + - build + +variables: + FDO_DISTRIBUTION_TAG: '2020-11-30.0' # change this to rebuild the images + FDO_DISTRIBUTION_VERSION: 'stable' + FDO_DISTRIBUTION_PACKAGES: 'meson g++ pkgconf libevemu-dev libevdev-dev libx11-dev libxi-dev libxext-dev' + +container-prep: + extends: + - .fdo.container-build@debian + stage: prep + variables: + GIT_STRATEGY: none + +build: + extends: + - .fdo.distribution-image@debian + stage: build + script: + - meson "$MESON_BUILDDIR" + - ninja -C "$MESON_BUILDDIR" + variables: + MESON_BUILDDIR: 'build dir' -- cgit v1.2.3