diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-11-30 09:42:42 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-11-30 09:42:42 +1000 |
commit | f29b408724e9c41f33673a6f975bb4299bfaebb7 (patch) | |
tree | 0833fc6e51ff6e0b1ef1ec358148fc5058d3e6c3 | |
parent | 7121e323de32405a67bcad43e77431145240b9de (diff) |
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 <peter.hutterer@who-t.net>
-rw-r--r-- | .gitlab-ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
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' |