]> diplodocus.org Git - xorg-xinput/blob - .gitlab-ci.yml
320ff03e580f1bd2b7de47842686d3ac9b9a15a5
[xorg-xinput] / .gitlab-ci.yml
1 # vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
2 #
3 # This CI uses the freedesktop.org ci-templates.
4 # Please see the ci-templates documentation for details:
5 # https://freedesktop.pages.freedesktop.org/ci-templates/
6
7 .templates_sha: &template_sha 34f4ade99434043f88e164933f570301fd18b125 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
8
9
10 include:
11 # Arch container builder template
12 - project: 'freedesktop/ci-templates'
13 ref: *template_sha
14 file: '/templates/arch.yml'
15 - project: 'freedesktop/ci-templates'
16 ref: *template_sha
17 file: '/templates/ci-fairy.yml'
18 - template: Security/SAST.gitlab-ci.yml
19
20
21 stages:
22 - prep # prep work like rebuilding the container images if there is a change
23 - build # for actually building and testing things in a container
24 - test
25 - deploy
26
27
28 variables:
29 FDO_UPSTREAM_REPO: 'xorg/app/xinput'
30 # The tag should be updated each time the list of packages is updated.
31 # Changing a tag forces the associated image to be rebuilt.
32 # Note: the tag has no meaning, we use a date format purely for readability
33 FDO_DISTRIBUTION_TAG: '2021-12-06.1'
34 FDO_DISTRIBUTION_PACKAGES: 'git gcc pkgconf autoconf automake make xorg-util-macros libx11 libxext libxi libxfixes xorgproto libxrandr libxinerama'
35
36
37 #
38 # Verify that commit messages are as expected, signed-off, etc.
39 #
40 check-commits:
41 extends:
42 - .fdo.ci-fairy
43 stage: prep
44 script:
45 - ci-fairy check-commits --signed-off-by --junit-xml=results.xml
46 except:
47 - master@xorg/app/xinput
48 variables:
49 GIT_DEPTH: 100
50 artifacts:
51 reports:
52 junit: results.xml
53
54 #
55 # Verify that the merge request has the allow-collaboration checkbox ticked
56 #
57 check-merge-request:
58 extends:
59 - .fdo.ci-fairy
60 stage: deploy
61 script:
62 - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
63 artifacts:
64 when: on_failure
65 reports:
66 junit: results.xml
67 allow_failure: true
68
69
70 #
71 # Build a container with the given tag and the packages pre-installed.
72 # This only happens if when the tag changes, otherwise the existing image is
73 # re-used.
74 #
75 container-prep:
76 extends:
77 - .fdo.container-build@arch
78 stage: prep
79 variables:
80 GIT_STRATEGY: none
81
82
83 #
84 # The default build, runs on the image built above.
85 #
86 build:
87 stage: build
88 extends:
89 - .fdo.distribution-image@arch
90 script:
91 - autoreconf -ivf
92 - mkdir _builddir
93 - pushd _builddir > /dev/null
94 - ../configure --disable-silent-rules
95 - make
96 - make check
97 - make distcheck
98 - popd > /dev/null