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 25459a8d343961918a7398e4b3c147e450926569
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 systemd-udev qemu-img qemu-system-x86-core qemu-system-aarch64-core jq python3-click python3-rich'
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-09-02.0'
92 DEBIAN_TAG: '2022-09-02.0'
93 UBUNTU_TAG: '2022-09-02.0'
94 ARCH_TAG: '2022-09-02.0'
95 ALPINE_TAG: '2022-09-02.0'
96 FREEBSD_TAG: '2022-09-02.0'
98 FDO_UPSTREAM_REPO: libinput/libinput
100 MESON_BUILDDIR: "build dir"
103 MESON_TEST_ARGS: '--no-suite=hardware'
105 # udev isn't available/working properly in the containers
106 UDEV_NOT_AVAILABLE: 1
113 - runner_system_failure
114 - stuck_or_timeout_failure
115 # cancel run when a newer version is pushed to the branch
121 name: "meson-logs-$CI_JOB_NAME"
125 - $MESON_BUILDDIR/meson-logs
127 junit: $MESON_BUILDDIR/*junit*.xml
130 #################################################################
132 # sanity check stage #
134 #################################################################
136 fail-if-fork-is-not-public:
140 if [ $CI_PROJECT_VISIBILITY != "public" ]; then
141 echo "*************************************************************************************"
142 echo "Project visibility must be set to 'public'"
143 echo "Change this in $CI_PROJECT_URL/edit under 'Visibility, project features, permissions'"
144 echo "*************************************************************************************"
148 - main@libinput/libinput
150 # Re-generate the CI script and make sure it's the one currently checked in
151 # If this job fails, re-generate the gitlab-ci.yml script, see
152 # $SRCDIR/.gitlab-ci/generate-gitlab-ci.py
159 - ci-fairy generate-template --verify && exit 0 || true
162 "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify" \
163 "https://wayland.freedesktop.org/libinput/doc/latest/contributing.html"
167 # Verify that commit messages are as expected, signed-off, etc.
175 - ci-fairy check-commits --signed-off-by --junit-xml=results.xml && exit 0 || true
178 "Error checking commit format. Please verify" \
179 "https://wayland.freedesktop.org/libinput/doc/latest/contributing.html"
182 - main@libinput/libinput
189 #################################################################
193 #################################################################
196 # Note: images are rebuilt weekly with a scheduled pipeline with FDO_FORCE_REBUILD set
199 fedora:35@container-prep:
201 - .fdo.container-build@fedora
206 FDO_DISTRIBUTION_VERSION: '35'
207 FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
208 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
210 fedora:36@container-prep:
212 - .fdo.container-build@fedora
217 FDO_DISTRIBUTION_VERSION: '36'
218 FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
219 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
221 debian:stable@container-prep:
223 - .fdo.container-build@debian
228 FDO_DISTRIBUTION_VERSION: 'stable'
229 FDO_DISTRIBUTION_PACKAGES: $DEBIAN_PACKAGES
230 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
232 ubuntu:22.04@container-prep:
234 - .fdo.container-build@ubuntu
239 FDO_DISTRIBUTION_VERSION: '22.04'
240 FDO_DISTRIBUTION_PACKAGES: $UBUNTU_PACKAGES
241 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
243 arch:rolling@container-prep:
245 - .fdo.container-build@arch
250 FDO_DISTRIBUTION_VERSION: 'rolling'
251 FDO_DISTRIBUTION_PACKAGES: $ARCH_PACKAGES
252 FDO_DISTRIBUTION_TAG: $ARCH_TAG
254 alpine:latest@container-prep:
256 - .fdo.container-build@alpine
261 FDO_DISTRIBUTION_VERSION: 'latest'
262 FDO_DISTRIBUTION_PACKAGES: $ALPINE_PACKAGES
263 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
265 freebsd:13.0@container-prep:
267 - .fdo.qemu-build@freebsd
274 FDO_DISTRIBUTION_VERSION: '13.0'
275 FDO_DISTRIBUTION_PACKAGES: $FREEBSD_PACKAGES
276 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
280 #################################################################
282 # container clean stage #
283 # run during the clean stage #
285 #################################################################
288 # This stage will look for the container images we currently have in
289 # the registry and will remove any that are not tagged with the provided
290 # $container_image:$tag
296 stage: container_clean
298 # Go to your Profile, Settings, Access Tokens
299 # Create a personal token with 'api' scope, copy the value.
300 # Go to CI/CD, Schedules, schedule a new monthly job (or edit the existing one)
301 # Define a variable of type File named AUTHFILE. Content is that token
303 - ci-fairy -v --authfile $AUTHFILE delete-image
304 --repository $FDO_DISTRIBUTION_NAME/$FDO_DISTRIBUTION_VERSION
305 --exclude-tag $FDO_DISTRIBUTION_TAG
310 fedora:35@container-clean:
316 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
317 FDO_DISTRIBUTION_VERSION: '35'
318 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
320 fedora:36@container-clean:
326 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
327 FDO_DISTRIBUTION_VERSION: '36'
328 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
330 debian:stable@container-clean:
336 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
337 FDO_DISTRIBUTION_VERSION: 'stable'
338 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
340 ubuntu:22.04@container-clean:
346 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/ubuntu/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
347 FDO_DISTRIBUTION_VERSION: '22.04'
348 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
350 arch:rolling@container-clean:
356 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/arch/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
357 FDO_DISTRIBUTION_VERSION: 'rolling'
358 FDO_DISTRIBUTION_TAG: $ARCH_TAG
360 alpine:latest@container-clean:
366 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/alpine/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
367 FDO_DISTRIBUTION_VERSION: 'latest'
368 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
370 freebsd:13.0@container-clean:
376 CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/freebsd/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
377 FDO_DISTRIBUTION_VERSION: '13.0'
378 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
381 #################################################################
385 #################################################################
393 - .gitlab-ci/meson-build.sh
396 # Run meson and meson test in the container image through qemu
397 .build-in-b2c@template:
404 MESON_BUILDDIR: build_dir
405 B2C_KERNEL: https://gitlab.freedesktop.org/api/v4/projects/libevdev%2Fhid-tools/packages/generic/kernel-x86_64/v5.19/bzImage
407 B2C_IMAGE: $FDO_DISTRIBUTION_IMAGE
408 B2C_COMMAND: .gitlab-ci/start-in-systemd.sh
410 # first build in the host container
411 - .gitlab-ci/meson-build.sh --skip-test
414 - curl -L -o /app/boot2container https://gitlab.freedesktop.org/mupuf/boot2container/-/raw/v0.9.8/vm2c.py
415 - chmod +x /app/boot2container
417 # runs the test suite only
418 - /app/boot2container
424 .check_tainted: &check_tainted |
425 # make sure the kernel is not tainted
426 if [[ "$(ssh localhost -p 5555 cat /proc/sys/kernel/tainted)" -gt 0 ]];
428 echo tainted kernel ;
432 # Run meson and meson test in the qemu image
433 .build-in-qemu@template:
436 - .fdo.distribution-image@fedora
440 MESON_BUILDDIR: build_dir
442 # start our vm, no args required
443 - /app/vmctl start || (echo "Error - Failed to start the VM." && exit 1)
448 - echo "CI_JOB_ID=\"$CI_JOB_ID\"" > sshenv
449 - echo "CI_JOB_NAME=\"$CI_JOB_NAME\"" >> sshenv
450 - echo "MESON_ARGS=\"$MESON_ARGS\"" >> sshenv
451 - echo "MESON_BUILDDIR=\"$MESON_BUILDDIR\"" >> sshenv
452 - echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS\"" >> sshenv
453 - echo "NINJA_ARGS=\"$NINJA_ARGS\"" >> sshenv
454 - "scp sshenv vm:~/$CI_PROJECT_NAME/.meson_environment"
455 - /app/vmctl exec "cd $CI_PROJECT_NAME ; .gitlab-ci/meson-build.sh" && touch .success || true
456 # no matter the results of the tests, we want to fetch the logs
457 - scp -r vm:$CI_PROJECT_NAME/$MESON_BUILDDIR .
463 - if [[ ! -e .success ]] ;
468 name: "qemu-meson-logs-$CI_JOB_NAME"
472 - $MESON_BUILDDIR/meson-logs
475 junit: $MESON_BUILDDIR/*junit*.xml
478 # Run in a test suite. Special variables:
479 # - SUITES: the meson test suites to run, or
480 # - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
481 # Set one or the other, not both.
484 - .build-in-b2c@template
487 # remove the global --no-suite=hardware
490 - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
491 - echo "Testing $SUITES"
492 - export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
493 - export LITEST_JOBS="2"
496 .fedora:36@test-suite-vm:
498 - .fdo.distribution-image@fedora
501 FDO_DISTRIBUTION_VERSION: 36
502 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
504 - "fedora:36@container-prep"
509 - .fedora:36@test-suite-vm
511 SUITE_NAMES: 'touchpad'
513 vm-touchpad-no-libwacom:
516 stage: test-suite-no-libwacom
518 MESON_ARGS: '-Dlibwacom=false'
522 - .fedora:36@test-suite-vm
524 SUITE_NAMES: 'touchpad-tap'
529 stage: test-suite-no-libwacom
531 MESON_ARGS: '-Dlibwacom=false'
535 - .fedora:36@test-suite-vm
537 SUITE_NAMES: 'touchpad-buttons'
539 vm-touchpad-buttons-no-libwacom:
541 - vm-touchpad-buttons
542 stage: test-suite-no-libwacom
544 MESON_ARGS: '-Dlibwacom=false'
548 - .fedora:36@test-suite-vm
550 SUITE_NAMES: 'tablet'
552 vm-tablet-no-libwacom:
555 stage: test-suite-no-libwacom
557 MESON_ARGS: '-Dlibwacom=false'
561 - .fedora:36@test-suite-vm
563 SUITE_NAMES: 'gestures device'
565 vm-gestures-device-no-libwacom:
568 stage: test-suite-no-libwacom
570 MESON_ARGS: '-Dlibwacom=false'
574 - .fedora:36@test-suite-vm
576 SUITE_NAMES: 'path udev'
578 vm-backends-no-libwacom:
581 stage: test-suite-no-libwacom
583 MESON_ARGS: '-Dlibwacom=false'
587 - .fedora:36@test-suite-vm
589 SUITE_NAMES: 'log misc quirks'
594 stage: test-suite-no-libwacom
596 MESON_ARGS: '-Dlibwacom=false'
600 - .fedora:36@test-suite-vm
602 SUITE_NAMES: 'keyboard pad switch trackball trackpoint totem touch'
604 vm-other devices-no-libwacom:
607 stage: test-suite-no-libwacom
609 MESON_ARGS: '-Dlibwacom=false'
613 - .fedora:36@test-suite-vm
615 SUITE_NAMES: 'pointer'
617 vm-pointer-no-libwacom:
620 stage: test-suite-no-libwacom
622 MESON_ARGS: '-Dlibwacom=false'
625 vm-valgrind-touchpad:
630 MESON_TEST_ARGS: '--setup=valgrind'
638 MESON_TEST_ARGS: '--setup=valgrind'
641 vm-valgrind-touchpad-buttons:
644 - vm-touchpad-buttons
646 MESON_TEST_ARGS: '--setup=valgrind'
654 MESON_TEST_ARGS: '--setup=valgrind'
657 vm-valgrind-gestures-device:
662 MESON_TEST_ARGS: '--setup=valgrind'
665 vm-valgrind-backends:
670 MESON_TEST_ARGS: '--setup=valgrind'
678 MESON_TEST_ARGS: '--setup=valgrind'
681 vm-valgrind-other devices:
686 MESON_TEST_ARGS: '--setup=valgrind'
694 MESON_TEST_ARGS: '--setup=valgrind'
698 .fedora-build@template:
700 - .fdo.distribution-image@fedora
703 FDO_DISTRIBUTION_VERSION: '36'
704 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
706 - "fedora:36@container-prep"
708 default-build-release@fedora:36:
711 - .fedora-build@template
713 MESON_ARGS: "-Dbuildtype=release"
716 scan-build@fedora:36:
718 - .fedora-build@template
723 - dnf install -y clang-analyzer
725 - .gitlab-ci/meson-build.sh
726 - export SCANBUILD="$PWD/.gitlab-ci/scanbuild-wrapper.sh"
727 - ninja -C "$MESON_BUILDDIR" scan-build
729 - .gitlab-ci/scanbuild-plist-to-junit.py "$MESON_BUILDDIR"/meson-logs/scanbuild/ > "$MESON_BUILDDIR"/junit-scan-build.xml
731 # Below jobs are build option combinations. We only
732 # run them on one image, they shouldn't fail on one distro
733 # when they succeed on another.
735 build-no-libwacom@fedora:36:
737 - .fedora-build@template
739 MESON_ARGS: "-Dlibwacom=false"
741 build-no-libwacom-nodeps@fedora:36:
743 - .fedora-build@template
745 MESON_ARGS: "-Dlibwacom=false"
747 - dnf remove -y libwacom libwacom-devel
749 build-docs@fedora:36:
751 - .fedora-build@template
753 MESON_ARGS: "-Ddocumentation=true"
755 build-no-docs-nodeps@fedora:36:
757 - .fedora-build@template
759 MESON_ARGS: "-Ddocumentation=false"
761 - dnf remove -y doxygen graphviz
763 build-no-debuggui@fedora:36:
765 - .fedora-build@template
767 MESON_ARGS: "-Ddebug-gui=false"
769 build-no-debuggui-nodeps@fedora:36:
771 - .fedora-build@template
773 MESON_ARGS: "-Ddebug-gui=false"
775 - dnf remove -y gtk3-devel gtk4-devel
777 build-no-tests@fedora:36:
779 - .fedora-build@template
781 MESON_ARGS: "-Dtests=false"
783 build-no-tests-nodeps@fedora:36:
785 - .fedora-build@template
787 MESON_ARGS: "-Dtests=false"
789 - dnf remove -y check-devel
793 - .fedora-build@template
795 MESON_TEST_ARGS: '--suite=valgrind --no-suite=hardware --setup=valgrind'
797 - dnf install -y valgrind
799 # Python checks, only run on Fedora
801 usr-bin-env-python@fedora:36:
803 - .fedora-build@template
806 if git grep -l '^#!/usr/bin/python'; then
807 echo "Use '/usr/bin/env python3' in the above files";
811 python-format@fedora:36:
813 - .fedora-build@template
815 - dnf install -y black
817 - black $(git grep -l '^#!/usr/bin/env python3')
818 - git diff --exit-code || (echo "Please run Black against all Python files" && false)
820 # A job to check we're actually running all test suites in the CI
823 - .fedora-build@template
828 - meson introspect builddir --test | jq -r '.[].name' | grep 'libinput-test-suite' | sort > meson-testsuites
830 cat <<EOF > ci-testsuites ;
831 libinput-test-suite-touchpad
832 libinput-test-suite-touchpad-tap
833 libinput-test-suite-touchpad-buttons
834 libinput-test-suite-tablet
835 libinput-test-suite-gestures
836 libinput-test-suite-device
837 libinput-test-suite-path
838 libinput-test-suite-udev
839 libinput-test-suite-log
840 libinput-test-suite-misc
841 libinput-test-suite-quirks
842 libinput-test-suite-keyboard
843 libinput-test-suite-pad
844 libinput-test-suite-switch
845 libinput-test-suite-trackball
846 libinput-test-suite-trackpoint
847 libinput-test-suite-totem
848 libinput-test-suite-touch
849 libinput-test-suite-pointer
851 - sort -o ci-testsuites ci-testsuites
852 - diff -u8 -w ci-testsuites meson-testsuites || (echo "Some test suites are not run in the CI" && false)
861 # This requires the COVERITY_SCAN_TOKEN. Log into scan.coverity.com and get
862 # the token from the respective project settings page.
863 # Schedule a pipeline and set a variable COVERITY_SCAN_TOKEN with the token value.
864 # https://gitlab.freedesktop.org/$CI_PROJECT_PATH/-/pipeline_schedules
865 # Email from coverity will be sent to the GITLAB_USER_EMAIL that scheduled the
868 # Coverity ratelimits submissions and the coverity tools download is about
869 # 700M, do not run this too often.
873 - .fdo.distribution-image@debian
877 FDO_DISTRIBUTION_VERSION: 'stable'
878 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
879 # so git-describe works, or should work
883 - $COVERITY_SCAN_TOKEN
885 - curl https://scan.coverity.com/download/linux64
886 -o /tmp/cov-analysis-linux64.tgz
887 --form project=$CI_PROJECT_NAME
888 --form token=$COVERITY_SCAN_TOKEN
889 - tar xfz /tmp/cov-analysis-linux64.tgz
890 # coverity has special build options in meson, make sure we enable those
891 - meson coverity-build -Ddocumentation=false -Dcoverity=true
892 - cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja -C coverity-build
893 - tar cfz cov-int.tar.gz cov-int
894 - curl https://scan.coverity.com/builds?project=$CI_PROJECT_NAME
895 --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
896 --form file=@cov-int.tar.gz --form version="$(git describe --tags)"
897 --form description="$(git describe --tags) / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
899 name: "coverity-submit-data"
905 - "debian:stable@container-prep"
907 #################################################################
911 #################################################################
913 fedora:35@default-build:
917 - .fdo.distribution-image@fedora
919 FDO_DISTRIBUTION_VERSION: '35'
920 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
922 - "fedora:35@container-prep"
925 fedora:36@default-build:
929 - .fdo.distribution-image@fedora
931 FDO_DISTRIBUTION_VERSION: '36'
932 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
934 - "fedora:36@container-prep"
937 debian:stable@default-build:
941 - .fdo.distribution-image@debian
943 FDO_DISTRIBUTION_VERSION: 'stable'
944 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
946 - "debian:stable@container-prep"
949 ubuntu:22.04@default-build:
953 - .fdo.distribution-image@ubuntu
955 FDO_DISTRIBUTION_VERSION: '22.04'
956 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
958 - "ubuntu:22.04@container-prep"
961 arch:rolling@default-build:
965 - .fdo.distribution-image@arch
967 FDO_DISTRIBUTION_VERSION: 'rolling'
968 FDO_DISTRIBUTION_TAG: $ARCH_TAG
970 - "arch:rolling@container-prep"
973 alpine:latest@default-build:
977 - .fdo.distribution-image@alpine
979 FDO_DISTRIBUTION_VERSION: 'latest'
980 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
981 MESON_ARGS: '-Ddocumentation=false' # alpine does not have python-recommonmark
982 MESON_TEST_ARGS: '' # litest-selftest fails on musl
984 - "alpine:latest@container-prep"
987 freebsd:13.0@default-build:
990 - .build-in-qemu@template
991 - .fdo.distribution-image@freebsd
993 FDO_DISTRIBUTION_VERSION: '13.0'
994 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
995 MESON_ARGS: '-Dtests=false -Ddocumentation=false' # doxygen drags down too many deps
996 MESON_TEST_ARGS: '' # test suite doesn't work on BSD yet
998 - "freebsd:13.0@container-prep"
1001 #################################################################
1005 #################################################################
1008 # Verify that the merge request has the allow-collaboration checkbox ticked
1011 check-merge-request:
1017 - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
1026 - .fdo.distribution-image@fedora
1030 FDO_DISTRIBUTION_VERSION: '36'
1031 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
1033 - "fedora:36@container-prep"
1035 - dnf install -y rpmdevtools jq
1036 - meson "$MESON_BUILDDIR"
1037 - VERSION=$(meson introspect "$MESON_BUILDDIR" --projectinfo | jq -r .version)
1038 - sed -e "s/@PIPELINEID@/${CI_PIPELINE_ID}/"
1039 -e "s/@GITVERSION@/${CI_COMMIT_SHA}/"
1040 -e "s/@VERSION@/${VERSION}/" .gitlab-ci/libinput.spec.in > libinput.spec
1041 - git config --local user.name 'gitlab CI'
1042 - git config --local user.email 'noreply@nowhere'
1043 - git add libinput.spec && git commit -m 'Add libinput.spec for build testing' libinput.spec
1044 - cd "$MESON_BUILDDIR"
1045 - meson dist --no-test
1046 - rpmbuild -ta meson-dist/libinput*.tar.xz
1051 trigger: wayland/wayland.freedesktop.org
1056 MESON_ARGS: '-Ddocumentation=true -Ddebug-gui=false -Dlibwacom=false -Dtests=false'
1057 MESON_BUILDDIR: 'builddir'
1062 - $CI_PROJECT_PATH == "libinput/libinput"