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'
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'
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:
400 - .fdo.b2c-image@fedora
405 MESON_BUILDDIR: build_dir
406 B2C_KERNEL: https://gitlab.freedesktop.org/api/v4/projects/libevdev%2Fhid-tools/packages/generic/kernel-x86_64/v5.19/bzImage
408 B2C_IMAGE: $FDO_DISTRIBUTION_IMAGE
409 B2C_COMMAND: .gitlab-ci/meson-build.sh
412 - curl -L -o /app/boot2container https://gitlab.freedesktop.org/mupuf/boot2container/-/raw/v0.9.8/vm2c.py
413 - chmod +x /app/boot2container
414 - /app/boot2container
420 .check_tainted: &check_tainted |
421 # make sure the kernel is not tainted
422 if [[ "$(ssh localhost -p 5555 cat /proc/sys/kernel/tainted)" -gt 0 ]];
424 echo tainted kernel ;
428 # Run meson and meson test in the qemu image
429 .build-in-qemu@template:
432 - .fdo.distribution-image@fedora
436 MESON_BUILDDIR: build_dir
438 # start our vm, no args required
439 - /app/vmctl start || (echo "Error - Failed to start the VM." && exit 1)
444 - echo "CI_JOB_ID=\"$CI_JOB_ID\"" > sshenv
445 - echo "CI_JOB_NAME=\"$CI_JOB_NAME\"" >> sshenv
446 - echo "MESON_ARGS=\"$MESON_ARGS\"" >> sshenv
447 - echo "MESON_BUILDDIR=\"$MESON_BUILDDIR\"" >> sshenv
448 - echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS\"" >> sshenv
449 - echo "NINJA_ARGS=\"$NINJA_ARGS\"" >> sshenv
450 - "scp sshenv vm:~/$CI_PROJECT_NAME/.meson_environment"
451 - /app/vmctl exec "cd $CI_PROJECT_NAME ; .gitlab-ci/meson-build.sh" && touch .success || true
452 # no matter the results of the tests, we want to fetch the logs
453 - scp -r vm:$CI_PROJECT_NAME/$MESON_BUILDDIR .
459 - if [[ ! -e .success ]] ;
464 name: "qemu-meson-logs-$CI_JOB_NAME"
468 - $MESON_BUILDDIR/meson-logs
471 junit: $MESON_BUILDDIR/*junit*.xml
474 # Run in a test suite. Special variables:
475 # - SUITES: the meson test suites to run, or
476 # - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
477 # Set one or the other, not both.
480 - .build-in-b2c@template
483 # remove the global --no-suite=hardware
486 - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
487 - echo "Testing $SUITES"
488 - export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
491 .fedora:36@test-suite-vm:
495 FDO_DISTRIBUTION_VERSION: 36
496 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
498 - "fedora:36@container-prep"
503 - .fedora:36@test-suite-vm
505 SUITE_NAMES: 'touchpad'
507 vm-touchpad-no-libwacom:
510 stage: test-suite-no-libwacom
512 MESON_ARGS: '-Dlibwacom=false'
516 - .fedora:36@test-suite-vm
518 SUITE_NAMES: 'touchpad-tap'
523 stage: test-suite-no-libwacom
525 MESON_ARGS: '-Dlibwacom=false'
529 - .fedora:36@test-suite-vm
531 SUITE_NAMES: 'touchpad-buttons'
533 vm-touchpad-buttons-no-libwacom:
535 - vm-touchpad-buttons
536 stage: test-suite-no-libwacom
538 MESON_ARGS: '-Dlibwacom=false'
542 - .fedora:36@test-suite-vm
544 SUITE_NAMES: 'tablet'
546 vm-tablet-no-libwacom:
549 stage: test-suite-no-libwacom
551 MESON_ARGS: '-Dlibwacom=false'
555 - .fedora:36@test-suite-vm
557 SUITE_NAMES: 'gestures device'
559 vm-gestures-device-no-libwacom:
562 stage: test-suite-no-libwacom
564 MESON_ARGS: '-Dlibwacom=false'
568 - .fedora:36@test-suite-vm
570 SUITE_NAMES: 'path udev'
572 vm-backends-no-libwacom:
575 stage: test-suite-no-libwacom
577 MESON_ARGS: '-Dlibwacom=false'
581 - .fedora:36@test-suite-vm
583 SUITE_NAMES: 'log misc quirks'
588 stage: test-suite-no-libwacom
590 MESON_ARGS: '-Dlibwacom=false'
594 - .fedora:36@test-suite-vm
596 SUITE_NAMES: 'keyboard pad switch trackball trackpoint totem touch'
598 vm-other devices-no-libwacom:
601 stage: test-suite-no-libwacom
603 MESON_ARGS: '-Dlibwacom=false'
607 - .fedora:36@test-suite-vm
609 SUITE_NAMES: 'pointer'
611 vm-pointer-no-libwacom:
614 stage: test-suite-no-libwacom
616 MESON_ARGS: '-Dlibwacom=false'
619 vm-valgrind-touchpad:
624 MESON_TEST_ARGS: '--setup=valgrind'
631 MESON_TEST_ARGS: '--setup=valgrind'
633 vm-valgrind-touchpad-buttons:
636 - vm-touchpad-buttons
638 MESON_TEST_ARGS: '--setup=valgrind'
645 MESON_TEST_ARGS: '--setup=valgrind'
647 vm-valgrind-gestures-device:
652 MESON_TEST_ARGS: '--setup=valgrind'
654 vm-valgrind-backends:
659 MESON_TEST_ARGS: '--setup=valgrind'
666 MESON_TEST_ARGS: '--setup=valgrind'
668 vm-valgrind-other devices:
673 MESON_TEST_ARGS: '--setup=valgrind'
680 MESON_TEST_ARGS: '--setup=valgrind'
683 .fedora-build@template:
685 - .fdo.distribution-image@fedora
688 FDO_DISTRIBUTION_VERSION: '36'
689 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
691 - "fedora:36@container-prep"
693 default-build-release@fedora:36:
696 - .fedora-build@template
698 MESON_ARGS: "-Dbuildtype=release"
701 scan-build@fedora:36:
703 - .fedora-build@template
708 - dnf install -y clang-analyzer
710 - .gitlab-ci/meson-build.sh
711 - export SCANBUILD="$PWD/.gitlab-ci/scanbuild-wrapper.sh"
712 - ninja -C "$MESON_BUILDDIR" scan-build
714 - .gitlab-ci/scanbuild-plist-to-junit.py "$MESON_BUILDDIR"/meson-logs/scanbuild/ > "$MESON_BUILDDIR"/junit-scan-build.xml
716 # Below jobs are build option combinations. We only
717 # run them on one image, they shouldn't fail on one distro
718 # when they succeed on another.
720 build-no-libwacom@fedora:36:
722 - .fedora-build@template
724 MESON_ARGS: "-Dlibwacom=false"
726 build-no-libwacom-nodeps@fedora:36:
728 - .fedora-build@template
730 MESON_ARGS: "-Dlibwacom=false"
732 - dnf remove -y libwacom libwacom-devel
734 build-docs@fedora:36:
736 - .fedora-build@template
738 MESON_ARGS: "-Ddocumentation=true"
740 build-no-docs-nodeps@fedora:36:
742 - .fedora-build@template
744 MESON_ARGS: "-Ddocumentation=false"
746 - dnf remove -y doxygen graphviz
748 build-no-debuggui@fedora:36:
750 - .fedora-build@template
752 MESON_ARGS: "-Ddebug-gui=false"
754 build-no-debuggui-nodeps@fedora:36:
756 - .fedora-build@template
758 MESON_ARGS: "-Ddebug-gui=false"
760 - dnf remove -y gtk3-devel gtk4-devel
762 build-no-tests@fedora:36:
764 - .fedora-build@template
766 MESON_ARGS: "-Dtests=false"
768 build-no-tests-nodeps@fedora:36:
770 - .fedora-build@template
772 MESON_ARGS: "-Dtests=false"
774 - dnf remove -y check-devel
778 - .fedora-build@template
780 MESON_TEST_ARGS: '--suite=valgrind --no-suite=hardware --setup=valgrind'
782 - dnf install -y valgrind
784 # Python checks, only run on Fedora
786 usr-bin-env-python@fedora:36:
788 - .fedora-build@template
791 if git grep -l '^#!/usr/bin/python'; then
792 echo "Use '/usr/bin/env python3' in the above files";
796 python-format@fedora:36:
798 - .fedora-build@template
800 - dnf install -y black
802 - black $(git grep -l '^#!/usr/bin/env python3')
803 - git diff --exit-code || (echo "Please run Black against all Python files" && false)
805 # A job to check we're actually running all test suites in the CI
808 - .fedora-build@template
813 - meson introspect builddir --test | jq -r '.[].name' | grep 'libinput-test-suite' | sort > meson-testsuites
815 cat <<EOF > ci-testsuites ;
816 libinput-test-suite-touchpad
817 libinput-test-suite-touchpad-tap
818 libinput-test-suite-touchpad-buttons
819 libinput-test-suite-tablet
820 libinput-test-suite-gestures
821 libinput-test-suite-device
822 libinput-test-suite-path
823 libinput-test-suite-udev
824 libinput-test-suite-log
825 libinput-test-suite-misc
826 libinput-test-suite-quirks
827 libinput-test-suite-keyboard
828 libinput-test-suite-pad
829 libinput-test-suite-switch
830 libinput-test-suite-trackball
831 libinput-test-suite-trackpoint
832 libinput-test-suite-totem
833 libinput-test-suite-touch
834 libinput-test-suite-pointer
836 - sort -o ci-testsuites ci-testsuites
837 - diff -u8 -w ci-testsuites meson-testsuites || (echo "Some test suites are not run in the CI" && false)
846 # This requires the COVERITY_SCAN_TOKEN. Log into scan.coverity.com and get
847 # the token from the respective project settings page.
848 # Schedule a pipeline and set a variable COVERITY_SCAN_TOKEN with the token value.
849 # https://gitlab.freedesktop.org/$CI_PROJECT_PATH/-/pipeline_schedules
850 # Email from coverity will be sent to the GITLAB_USER_EMAIL that scheduled the
853 # Coverity ratelimits submissions and the coverity tools download is about
854 # 700M, do not run this too often.
858 - .fdo.distribution-image@debian
862 FDO_DISTRIBUTION_VERSION: 'stable'
863 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
864 # so git-describe works, or should work
868 - $COVERITY_SCAN_TOKEN
870 - curl https://scan.coverity.com/download/linux64
871 -o /tmp/cov-analysis-linux64.tgz
872 --form project=$CI_PROJECT_NAME
873 --form token=$COVERITY_SCAN_TOKEN
874 - tar xfz /tmp/cov-analysis-linux64.tgz
875 # coverity has special build options in meson, make sure we enable those
876 - meson coverity-build -Ddocumentation=false -Dcoverity=true
877 - cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja -C coverity-build
878 - tar cfz cov-int.tar.gz cov-int
879 - curl https://scan.coverity.com/builds?project=$CI_PROJECT_NAME
880 --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
881 --form file=@cov-int.tar.gz --form version="$(git describe --tags)"
882 --form description="$(git describe --tags) / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
884 name: "coverity-submit-data"
890 - "debian:stable@container-prep"
892 #################################################################
896 #################################################################
898 fedora:35@default-build:
902 - .fdo.distribution-image@fedora
904 FDO_DISTRIBUTION_VERSION: '35'
905 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
907 - "fedora:35@container-prep"
910 fedora:36@default-build:
914 - .fdo.distribution-image@fedora
916 FDO_DISTRIBUTION_VERSION: '36'
917 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
919 - "fedora:36@container-prep"
922 debian:stable@default-build:
926 - .fdo.distribution-image@debian
928 FDO_DISTRIBUTION_VERSION: 'stable'
929 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG
931 - "debian:stable@container-prep"
934 ubuntu:22.04@default-build:
938 - .fdo.distribution-image@ubuntu
940 FDO_DISTRIBUTION_VERSION: '22.04'
941 FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
943 - "ubuntu:22.04@container-prep"
946 arch:rolling@default-build:
950 - .fdo.distribution-image@arch
952 FDO_DISTRIBUTION_VERSION: 'rolling'
953 FDO_DISTRIBUTION_TAG: $ARCH_TAG
955 - "arch:rolling@container-prep"
958 alpine:latest@default-build:
962 - .fdo.distribution-image@alpine
964 FDO_DISTRIBUTION_VERSION: 'latest'
965 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
966 MESON_ARGS: '-Ddocumentation=false' # alpine does not have python-recommonmark
967 MESON_TEST_ARGS: '' # litest-selftest fails on musl
969 - "alpine:latest@container-prep"
972 freebsd:13.0@default-build:
975 - .build-in-qemu@template
976 - .fdo.distribution-image@freebsd
978 FDO_DISTRIBUTION_VERSION: '13.0'
979 FDO_DISTRIBUTION_TAG: $FREEBSD_TAG
980 MESON_ARGS: '-Dtests=false -Ddocumentation=false' # doxygen drags down too many deps
981 MESON_TEST_ARGS: '' # test suite doesn't work on BSD yet
983 - "freebsd:13.0@container-prep"
986 #################################################################
990 #################################################################
993 # Verify that the merge request has the allow-collaboration checkbox ticked
1002 - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
1011 - .fdo.distribution-image@fedora
1015 FDO_DISTRIBUTION_VERSION: '36'
1016 FDO_DISTRIBUTION_TAG: $FEDORA_TAG
1018 - "fedora:36@container-prep"
1020 - dnf install -y rpmdevtools jq
1021 - meson "$MESON_BUILDDIR"
1022 - VERSION=$(meson introspect "$MESON_BUILDDIR" --projectinfo | jq -r .version)
1023 - sed -e "s/@PIPELINEID@/${CI_PIPELINE_ID}/"
1024 -e "s/@GITVERSION@/${CI_COMMIT_SHA}/"
1025 -e "s/@VERSION@/${VERSION}/" .gitlab-ci/libinput.spec.in > libinput.spec
1026 - git config --local user.name 'gitlab CI'
1027 - git config --local user.email 'noreply@nowhere'
1028 - git add libinput.spec && git commit -m 'Add libinput.spec for build testing' libinput.spec
1029 - cd "$MESON_BUILDDIR"
1030 - meson dist --no-test
1031 - rpmbuild -ta meson-dist/libinput*.tar.xz
1036 trigger: wayland/wayland.freedesktop.org
1041 MESON_ARGS: '-Ddocumentation=true -Ddebug-gui=false -Dlibwacom=false -Dtests=false'
1042 MESON_BUILDDIR: 'builddir'
1047 - $CI_PROJECT_PATH == "libinput/libinput"