blob: cff93c80952d8f08a96d1750e27688e9db047e47 [file] [log] [blame]
.templates_sha: &template_sha 290b79e0e78eab67a83766f4e9691be554fc4afd
include:
- project: 'freedesktop/ci-templates'
ref: *template_sha
file: '/templates/debian.yml'
- project: 'freedesktop/ci-templates'
ref: *template_sha
file: '/templates/ci-fairy.yml'
stages:
- review
- containers-build
- test
variables:
FDO_UPSTREAM_REPO: wayland/wayland-protocols
.debian:
variables:
FDO_DISTRIBUTION_VERSION: bullseye
FDO_DISTRIBUTION_PACKAGES: 'build-essential pkg-config meson git ca-certificates libffi-dev libexpat1-dev libxml2-dev'
FDO_DISTRIBUTION_TAG: '2022-01-19.0'
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} ./.gitlab-ci/debian-install.sh'
check-commit:
extends:
- .fdo.ci-fairy
stage: review
script:
- ci-fairy check-commits --signed-off-by --junit-xml=results.xml
variables:
GIT_DEPTH: 100
artifacts:
reports:
junit: results.xml
container_build:
extends:
- .debian
- .fdo.container-build@debian
stage: containers-build
variables:
GIT_STRATEGY: none
test-meson:
stage: test
extends:
- .debian
- .fdo.distribution-image@debian
script:
- meson build
- ninja -C build
- meson test -C build
- ninja -C build install
artifacts:
name: wayland-protocols-$CI_COMMIT_SHA
when: always
paths:
- $CI_PROJECT_DIR/build/meson-logs