1 # vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
3 ########################################
5 # THIS FILE IS GENERATED, DO NOT EDIT #
7 ########################################
9 # To change the gitlab CI, edit .gitlab-ci/ci.template and/or .gitlab-ci/config.yaml
10 # and run ci-fairy generate-template. For details, see
11 # https://freedesktop.pages.freedesktop.org/ci-templates/ci-fairy.html#templating-gitlab-ci-yml
13 # This is a bit complicated for two reasons:
14 # - we really want to run dnf/apt/... only once, updating on the test runner for
15 # each job takes forever. So we create a container image for each distribution
16 # tested, then run the tests on this container image.
18 # This is handled by the ci-templates, ensuring containers are only rebuilt
19 # when the TAG changes.
21 # - GitLab only allows one script: set per job but we have a bunch of commands
22 # we need to re-run for each build (meson && ninja && etc). YAML cannot merge
23 # arrays so we're screwed.
25 # So instead we use a default_build template and override everything with
26 # variables. The only two variables that matter:
27 # MESON_ARGS=-Denable-something=true
28 # NINJA_ARGS=dist ... to run 'ninja -C builddir dist'
29 # Note that you cannot use scripts: in any target if you expect default_build
33 # All jobs must follow the naming scheme of
34 # <distribution>:<version>@activity:
35 # e.g. fedora:31@build-default
37 .templates_sha: &template_sha 0c312d9c7255f46e741d43bcd1930f09cd12efe7
40 - project: 'freedesktop/ci-templates'
43 - '/templates/ci-fairy.yml'
44 # Alpine container builder template
45 - '/templates/alpine.yml'
46 # Arch container builder template
47 - '/templates/arch.yml'
48 # Debian container builder template
49 - '/templates/debian.yml'
50 # Fedora container builder template
51 - '/templates/fedora.yml'
52 # Freebsd container builder template
53 - '/templates/freebsd.yml'
54 # Ubuntu container builder template
55 - '/templates/ubuntu.yml'
58 - sanity check # CI/commit checks
59 - prep # prep work like rebuilding the container images if there is a change
60 - build # for actually building and testing things in a container
61 - test-suite # for running the test suite in a VM
62 - test-suite-no-libwacom # for running the test suite in a VM (libwacom disabled)
63 - valgrind # for running the test suite under valgrind in a VM
64 - distro # distribs test
65 - deploy # trigger wayland's website generation
66 - container_clean # clean up unused container images (scheduled jobs only)
69 ###############################################################################
70 # This is the list of packages required to build libinput with the default #
73 # Run dnf install/apt-get install/.. with the list of packages for your #
76 # See the documentation here: #
77 # https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html #
78 ###############################################################################
79 FEDORA_PACKAGES: 'git-core gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk4-devel glib2-devel mtdev-devel diffutils wayland-protocols-devel valgrind'
80 DEBIAN_PACKAGES: 'git gcc g++ pkg-config meson check libudev-dev libevdev-dev doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx-rtd-theme python3-pytest-xdist libwacom-dev libcairo2-dev libgtk-3-dev libglib2.0-dev libmtdev-dev curl'
81 UBUNTU_PACKAGES: 'git gcc g++ pkg-config meson check libudev-dev libevdev-dev doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx-rtd-theme python3-pytest-xdist libwacom-dev libcairo2-dev libgtk-3-dev libglib2.0-dev libmtdev-dev'
82 ARCH_PACKAGES: 'git gcc pkgconfig meson check libsystemd libevdev doxygen graphviz python-sphinx python-recommonmark python-sphinx_rtd_theme python-pytest-xdist libwacom gtk4 mtdev diffutils wayland-protocols'
83 ALPINE_PACKAGES: 'git gcc build-base pkgconfig meson check-dev eudev-dev libevdev-dev libwacom-dev cairo-dev gtk4.0-dev mtdev-dev bash'
84 FREEBSD_PACKAGES: 'git pkgconf meson libepoll-shim libudev-devd libevdev libwacom gtk3 libmtdev bash wayland'
85 ############################ end of package lists #############################
87 # these tags should be updated each time the list of packages is updated
88 # changing these will force rebuilding the associated image
89 # Note: these tags have no meaning and are not tied to a particular
91 FEDORA_TAG: '2022-06-10.0'
92 DEBIAN_TAG: '2022-06-10.0'
93 UBUNTU_TAG: '2022-06-10.0'
94 ARCH_TAG: '2022-06-10.0'
95 ALPINE_TAG: '2022-06-10.0'
96 FREEBSD_TAG: '2022-06-10.0'
97 FEDORA_QEMU_TAG: 'fedora-qemu-vm-2022-06-10.0'
99 FDO_UPSTREAM_REPO: libinput/libinput
101 MESON_BUILDDIR: "build dir"
104 MESON_TEST_ARGS: '--no-suite=hardware'
106 # udev isn't available/working properly in the containers
107 UDEV_NOT_AVAILABLE: 1
114 - runner_system_failure
115 - stuck_or_timeout_failure
116 # cancel run when a newer version is pushed to the branch
122 name: "meson-logs-$CI_JOB_NAME"
126 - $MESON_BUILDDIR/meson-logs
128 junit: $MESON_BUILDDIR/*junit*.xml
131 #################################################################
133 # sanity check stage #
135 #################################################################
137 fail-if-fork-is-not-public:
141 if [ $CI_PROJECT_VISIBILITY != "public" ]; then
142 echo "*************************************************************************************"
143 echo "Project visibility must be set to 'public'"
144 echo "Change this in $CI_PROJECT_URL/edit under 'Visibility, project features, permissions'"
145 echo "*************************************************************************************"
149 - main@libinput/libinput
151 # Re-generate the CI script and make sure it's the one currently checked in
152 # If this job fails, re-generate the gitlab-ci.yml script, see
153 # $SRCDIR/.gitlab-ci/generate-gitlab-ci.py
160 - ci-fairy generate-template --verify && exit 0 || true
163 "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify" \
164 "https://wayland.freedesktop.org/libinput/doc/latest/contributing.html"
168 # Verify that commit messages are as expected, signed-off, etc.
176 - ci-fairy check-commits --signed-off-by --junit-xml=results.xml && exit 0 || true
179 "Error checking commit format. Please verify" \
180 "https://wayland.freedesktop.org/libinput/doc/latest/contributing.html"
183 - main@libinput/libinput
190 #################################################################
194 #################################################################
197 # Note: images are rebuilt weekly with a scheduled pipeline with FDO_FORCE_REBUILD set
202 - .fdo.qemu-build@fedora
209 FDO_DISTRIBUTION_VERSION: "36"
210 FDO_DISTRIBUTION_TAG: $FEDORA_QEMU_TAG
211 FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
214 fedora:35@container-prep:
216 - .fdo.container-build@fedora
221 FDO_DISTRIBUTION_VERSION: '35'
222 FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
223 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
225 fedora:36@container-prep:
227 - .fdo.container-build@fedora
232 FDO_DISTRIBUTION_VERSION: '36'
233 FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
234 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
236 debian:stable@container-prep:
238 - .fdo.container-build@debian
243 FDO_DISTRIBUTION_VERSION: 'stable'
244 FDO_DISTRIBUTION_PACKAGES: $DEBIAN_PACKAGES
245 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
247 ubuntu:22.04@container-prep:
249 - .fdo.container-build@ubuntu
254 FDO_DISTRIBUTION_VERSION: '22.04'
255 FDO_DISTRIBUTION_PACKAGES: $UBUNTU_PACKAGES
256 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
258 arch:rolling@container-prep:
260 - .fdo.container-build@arch
265 FDO_DISTRIBUTION_VERSION: 'rolling'
266 FDO_DISTRIBUTION_PACKAGES: $ARCH_PACKAGES
267 FDO_DISTRIBUTION_TAG: $ARCH_TAG
269 alpine:latest@container-prep:
271 - .fdo.container-build@alpine
276 FDO_DISTRIBUTION_VERSION: 'latest'
277 FDO_DISTRIBUTION_PACKAGES: $ALPINE_PACKAGES
278 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
280 freebsd:13.0@container-prep:
282 - .fdo.qemu-build@freebsd
289 FDO_DISTRIBUTION_VERSION: '13.0'
290 FDO_DISTRIBUTION_PACKAGES: $FREEBSD_PACKAGES
291 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
295 #################################################################
297 # container clean stage #
298 # run during the clean stage #
300 #################################################################
303 # This stage will look for the container images we currently have in
304 # the registry and will remove any that are not tagged with the provided
305 # $container_image:$tag
311 stage: container_clean
313 # Go to your Profile, Settings, Access Tokens
314 # Create a personal token with 'api' scope, copy the value.
315 # Go to CI/CD, Schedules, schedule a new monthly job (or edit the existing one)
316 # Define a variable of type File named AUTHFILE. Content is that token
318 - ci-fairy -v --authfile $AUTHFILE delete-image
319 --repository $FDO_DISTRIBUTION_NAME/$FDO_DISTRIBUTION_VERSION
320 --exclude-tag $FDO_DISTRIBUTION_TAG
325 fedora:35@container-clean:
331 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
332 FDO_DISTRIBUTION_VERSION: '35'
333 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
335 fedora:36@container-clean:
341 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
342 FDO_DISTRIBUTION_VERSION: '36'
343 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
345 debian:stable@container-clean:
351 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
352 FDO_DISTRIBUTION_VERSION: 'stable'
353 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
355 ubuntu:22.04@container-clean:
361 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/ubuntu/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
362 FDO_DISTRIBUTION_VERSION: '22.04'
363 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
365 arch:rolling@container-clean:
371 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/arch/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
372 FDO_DISTRIBUTION_VERSION: 'rolling'
373 FDO_DISTRIBUTION_TAG: $ARCH_TAG
375 alpine:latest@container-clean:
381 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/alpine/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
382 FDO_DISTRIBUTION_VERSION: 'latest'
383 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
385 freebsd:13.0@container-clean:
391 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/freebsd/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
392 FDO_DISTRIBUTION_VERSION: '13.0'
393 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
396 #################################################################
400 #################################################################
408 - .gitlab-ci/meson-build.sh
414 .check_tainted: &check_tainted |
415 # make sure the kernel is not tainted
416 if [[ "$(ssh localhost -p 5555 cat /proc/sys/kernel/tainted)" -gt 0 ]];
418 echo tainted kernel ;
422 # Run meson and meson test in the qemu image
423 .build-in-qemu@template:
426 - .fdo.distribution-image@fedora
430 MESON_BUILDDIR: build_dir
432 # start our vm, no args required
433 - /app/vmctl start || (echo "Error - Failed to start the VM." && exit 1)
438 - echo "CI_JOB_ID=\"$CI_JOB_ID\"" > sshenv
439 - echo "CI_JOB_NAME=\"$CI_JOB_NAME\"" >> sshenv
440 - echo "MESON_ARGS=\"$MESON_ARGS\"" >> sshenv
441 - echo "MESON_BUILDDIR=\"$MESON_BUILDDIR\"" >> sshenv
442 - echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS\"" >> sshenv
443 - echo "NINJA_ARGS=\"$NINJA_ARGS\"" >> sshenv
444 - "scp sshenv vm:~/$CI_PROJECT_NAME/.meson_environment"
445 - /app/vmctl exec "cd $CI_PROJECT_NAME ; .gitlab-ci/meson-build.sh" && touch .success || true
446 # no matter the results of the tests, we want to fetch the logs
447 - scp -r vm:$CI_PROJECT_NAME/$MESON_BUILDDIR .
453 - if [[ ! -e .success ]] ;
458 name: "qemu-meson-logs-$CI_JOB_NAME"
462 - $MESON_BUILDDIR/meson-logs
465 junit: $MESON_BUILDDIR/*junit*.xml
468 # Run in a test suite. Special variables:
469 # - SUITES: the meson test suites to run, or
470 # - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
471 # Set one or the other, not both.
474 - .build-in-qemu@template
477 # remove the global --no-suite=hardware
480 - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
481 - echo "Testing $SUITES"
482 - export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
485 .fedora:36@test-suite-vm:
489 FDO_DISTRIBUTION_VERSION: 36
490 FDO_DISTRIBUTION_TAG: $FEDORA_QEMU_TAG
492 - "fedora:36@qemu-prep"
497 - .fedora:36@test-suite-vm
499 SUITE_NAMES: 'touchpad'
501 vm-touchpad-no-libwacom:
504 stage: test-suite-no-libwacom
506 MESON_ARGS: '-Dlibwacom=false'
510 - .fedora:36@test-suite-vm
512 SUITE_NAMES: 'touchpad-tap'
517 stage: test-suite-no-libwacom
519 MESON_ARGS: '-Dlibwacom=false'
523 - .fedora:36@test-suite-vm
525 SUITE_NAMES: 'touchpad-buttons'
527 vm-touchpad-buttons-no-libwacom:
529 - vm-touchpad-buttons
530 stage: test-suite-no-libwacom
532 MESON_ARGS: '-Dlibwacom=false'
536 - .fedora:36@test-suite-vm
538 SUITE_NAMES: 'tablet'
540 vm-tablet-no-libwacom:
543 stage: test-suite-no-libwacom
545 MESON_ARGS: '-Dlibwacom=false'
549 - .fedora:36@test-suite-vm
551 SUITE_NAMES: 'gestures device'
553 vm-gestures-device-no-libwacom:
556 stage: test-suite-no-libwacom
558 MESON_ARGS: '-Dlibwacom=false'
562 - .fedora:36@test-suite-vm
564 SUITE_NAMES: 'path udev'
566 vm-backends-no-libwacom:
569 stage: test-suite-no-libwacom
571 MESON_ARGS: '-Dlibwacom=false'
575 - .fedora:36@test-suite-vm
577 SUITE_NAMES: 'log misc quirks'
582 stage: test-suite-no-libwacom
584 MESON_ARGS: '-Dlibwacom=false'
588 - .fedora:36@test-suite-vm
590 SUITE_NAMES: 'keyboard pad switch trackball trackpoint totem touch'
592 vm-other devices-no-libwacom:
595 stage: test-suite-no-libwacom
597 MESON_ARGS: '-Dlibwacom=false'
601 - .fedora:36@test-suite-vm
603 SUITE_NAMES: 'pointer'
605 vm-pointer-no-libwacom:
608 stage: test-suite-no-libwacom
610 MESON_ARGS: '-Dlibwacom=false'
613 vm-valgrind-touchpad:
618 MESON_TEST_ARGS: '--setup=valgrind'
625 MESON_TEST_ARGS: '--setup=valgrind'
627 vm-valgrind-touchpad-buttons:
630 - vm-touchpad-buttons
632 MESON_TEST_ARGS: '--setup=valgrind'
639 MESON_TEST_ARGS: '--setup=valgrind'
641 vm-valgrind-gestures-device:
646 MESON_TEST_ARGS: '--setup=valgrind'
648 vm-valgrind-backends:
653 MESON_TEST_ARGS: '--setup=valgrind'
660 MESON_TEST_ARGS: '--setup=valgrind'
662 vm-valgrind-other devices:
667 MESON_TEST_ARGS: '--setup=valgrind'
674 MESON_TEST_ARGS: '--setup=valgrind'
677 .fedora-build@template:
679 - .fdo.distribution-image@fedora
682 FDO_DISTRIBUTION_VERSION: '36'
683 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
685 - "fedora:36@container-prep"
687 default-build-release@fedora:36:
690 - .fedora-build@template
692 MESON_ARGS: "-Dbuildtype=release"
695 scan-build@fedora:36:
697 - .fedora-build@template
702 - dnf install -y clang-analyzer
704 - .gitlab-ci/meson-build.sh
705 - export SCANBUILD="$PWD/.gitlab-ci/scanbuild-wrapper.sh"
706 - ninja -C "$MESON_BUILDDIR" scan-build
708 - .gitlab-ci/scanbuild-plist-to-junit.py "$MESON_BUILDDIR"/meson-logs/scanbuild/ > "$MESON_BUILDDIR"/junit-scan-build.xml
710 # Below jobs are build option combinations. We only
711 # run them on one image, they shouldn't fail on one distro
712 # when they succeed on another.
714 build-no-libwacom@fedora:36:
716 - .fedora-build@template
718 MESON_ARGS: "-Dlibwacom=false"
720 build-no-libwacom-nodeps@fedora:36:
722 - .fedora-build@template
724 MESON_ARGS: "-Dlibwacom=false"
726 - dnf remove -y libwacom libwacom-devel
728 build-docs@fedora:36:
730 - .fedora-build@template
732 MESON_ARGS: "-Ddocumentation=true"
734 build-no-docs-nodeps@fedora:36:
736 - .fedora-build@template
738 MESON_ARGS: "-Ddocumentation=false"
740 - dnf remove -y doxygen graphviz
742 build-no-debuggui@fedora:36:
744 - .fedora-build@template
746 MESON_ARGS: "-Ddebug-gui=false"
748 build-no-debuggui-nodeps@fedora:36:
750 - .fedora-build@template
752 MESON_ARGS: "-Ddebug-gui=false"
754 - dnf remove -y gtk3-devel gtk4-devel
756 build-no-tests@fedora:36:
758 - .fedora-build@template
760 MESON_ARGS: "-Dtests=false"
762 build-no-tests-nodeps@fedora:36:
764 - .fedora-build@template
766 MESON_ARGS: "-Dtests=false"
768 - dnf remove -y check-devel
772 - .fedora-build@template
774 MESON_TEST_ARGS: '--suite=valgrind --no-suite=hardware --setup=valgrind'
776 - dnf install -y valgrind
778 # Python checks, only run on Fedora
780 usr-bin-env-python@fedora:36:
782 - .fedora-build@template
785 if git grep -l '^#!/usr/bin/python'; then
786 echo "Use '/usr/bin/env python3' in the above files";
790 python-format@fedora:36:
792 - .fedora-build@template
794 - dnf install -y black
796 - black $(git grep -l '^#!/usr/bin/env python3')
797 - git diff --exit-code || (echo "Please run Black against all Python files" && false)
799 # A job to check we're actually running all test suites in the CI
802 - .fedora-build@template
807 - meson introspect builddir --test | jq -r '.[].name' | grep 'libinput-test-suite' | sort > meson-testsuites
809 cat <<EOF > ci-testsuites ;
810 libinput-test-suite-touchpad
811 libinput-test-suite-touchpad-tap
812 libinput-test-suite-touchpad-buttons
813 libinput-test-suite-tablet
814 libinput-test-suite-gestures
815 libinput-test-suite-device
816 libinput-test-suite-path
817 libinput-test-suite-udev
818 libinput-test-suite-log
819 libinput-test-suite-misc
820 libinput-test-suite-quirks
821 libinput-test-suite-keyboard
822 libinput-test-suite-pad
823 libinput-test-suite-switch
824 libinput-test-suite-trackball
825 libinput-test-suite-trackpoint
826 libinput-test-suite-totem
827 libinput-test-suite-touch
828 libinput-test-suite-pointer
830 - sort -o ci-testsuites ci-testsuites
831 - diff -u8 -w ci-testsuites meson-testsuites || (echo "Some test suites are not run in the CI" && false)
840 # This requires the COVERITY_SCAN_TOKEN. Log into scan.coverity.com and get
841 # the token from the respective project settings page.
842 # Schedule a pipeline and set a variable COVERITY_SCAN_TOKEN with the token value.
843 # https://gitlab.freedesktop.org/$CI_PROJECT_PATH/-/pipeline_schedules
844 # Email from coverity will be sent to the GITLAB_USER_EMAIL that scheduled the
847 # Coverity ratelimits submissions and the coverity tools download is about
848 # 700M, do not run this too often.
852 - .fdo.distribution-image@debian
856 FDO_DISTRIBUTION_VERSION: 'stable'
857 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
858 # so git-describe works, or should work
862 - $COVERITY_SCAN_TOKEN
864 - curl https://scan.coverity.com/download/linux64
865 -o /tmp/cov-analysis-linux64.tgz
866 --form project=$CI_PROJECT_NAME
867 --form token=$COVERITY_SCAN_TOKEN
868 - tar xfz /tmp/cov-analysis-linux64.tgz
869 # coverity has special build options in meson, make sure we enable those
870 - meson coverity-build -Ddocumentation=false -Dcoverity=true
871 - cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja -C coverity-build
872 - tar cfz cov-int.tar.gz cov-int
873 - curl https://scan.coverity.com/builds?project=$CI_PROJECT_NAME
874 --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
875 --form file=@cov-int.tar.gz --form version="$(git describe --tags)"
876 --form description="$(git describe --tags) / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
878 name: "coverity-submit-data"
884 - "debian:stable@container-prep"
886 #################################################################
890 #################################################################
892 fedora:35@default-build:
896 - .fdo.distribution-image@fedora
898 FDO_DISTRIBUTION_VERSION: '35'
899 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
901 - "fedora:35@container-prep"
904 fedora:36@default-build:
908 - .fdo.distribution-image@fedora
910 FDO_DISTRIBUTION_VERSION: '36'
911 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
913 - "fedora:36@container-prep"
916 debian:stable@default-build:
920 - .fdo.distribution-image@debian
922 FDO_DISTRIBUTION_VERSION: 'stable'
923 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
925 - "debian:stable@container-prep"
928 ubuntu:22.04@default-build:
932 - .fdo.distribution-image@ubuntu
934 FDO_DISTRIBUTION_VERSION: '22.04'
935 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
937 - "ubuntu:22.04@container-prep"
940 arch:rolling@default-build:
944 - .fdo.distribution-image@arch
946 FDO_DISTRIBUTION_VERSION: 'rolling'
947 FDO_DISTRIBUTION_TAG: $ARCH_TAG
949 - "arch:rolling@container-prep"
952 alpine:latest@default-build:
956 - .fdo.distribution-image@alpine
958 FDO_DISTRIBUTION_VERSION: 'latest'
959 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
960 MESON_ARGS: '-Ddocumentation=false' # alpine does not have python-recommonmark
961 MESON_TEST_ARGS: '' # litest-selftest fails on musl
963 - "alpine:latest@container-prep"
966 freebsd:13.0@default-build:
969 - .build-in-qemu@template
970 - .fdo.distribution-image@freebsd
972 FDO_DISTRIBUTION_VERSION: '13.0'
973 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
974 MESON_ARGS: '-Dtests=false -Ddocumentation=false' # doxygen drags down too many deps
975 MESON_TEST_ARGS: '' # test suite doesn't work on BSD yet
977 - "freebsd:13.0@container-prep"
980 #################################################################
984 #################################################################
987 # Verify that the merge request has the allow-collaboration checkbox ticked
996 - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
1005 - .fdo.distribution-image@fedora
1009 FDO_DISTRIBUTION_VERSION: '36'
1010 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
1012 - "fedora:36@container-prep"
1014 - dnf install -y rpmdevtools jq
1015 - meson "$MESON_BUILDDIR"
1016 - VERSION=$(meson introspect "$MESON_BUILDDIR" --projectinfo | jq -r .version)
1017 - sed -e "s/@PIPELINEID@/${CI_PIPELINE_ID}/"
1018 -e "s/@GITVERSION@/${CI_COMMIT_SHA}/"
1019 -e "s/@VERSION@/${VERSION}/" .gitlab-ci/libinput.spec.in > libinput.spec
1020 - git config --local user.name 'gitlab CI'
1021 - git config --local user.email 'noreply@nowhere'
1022 - git add libinput.spec && git commit -m 'Add libinput.spec for build testing' libinput.spec
1023 - cd "$MESON_BUILDDIR"
1024 - meson dist --no-test
1025 - rpmbuild -ta meson-dist/libinput*.tar.xz
1030 trigger: wayland/wayland.freedesktop.org
1035 MESON_ARGS: '-Ddocumentation=true -Ddebug-gui=false -Dlibwacom=false -Dtests=false'
1036 MESON_BUILDDIR: 'builddir'
1041 - $CI_PROJECT_PATH == "libinput/libinput"