drop compat with ancient xorg version
[xf86-video-sis.git] / .gitlab-ci.yml
blobcf401bc5333696dbf54907907ff5ca71758ad49d
1 # vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
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/
7 .templates_sha: &template_sha 25e8e9f020880aa35fffe3d6b259b933f0f9449f # see https://docs.gitlab.com/ee/ci/yaml/#includefile
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
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
28 variables:
29   FDO_UPSTREAM_REPO: 'xorg/driver/xf86-video-sis'
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:  '2023-10-06.0'
34   FDO_DISTRIBUTION_PACKAGES:  'git gcc pkgconf autoconf automake libtool make xorg-util-macros xorgproto xorg-server-devel pixman libpciaccess libdrm'
38 # Verify that commit messages are as expected
40 check-commits:
41   extends:
42     - .fdo.ci-fairy
43   stage: prep
44   script:
45     - ci-fairy check-commits --junit-xml=results.xml
46   except:
47     - master@xorg/driver/xf86-video-sis
48   variables:
49     GIT_DEPTH: 100
50   artifacts:
51     reports:
52       junit: results.xml
55 # Verify that the merge request has the allow-collaboration checkbox ticked
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
71 # Build a container with the given tag and the packages pre-installed.
72 # This only happens if the tag changes, otherwise the existing image is
73 # re-used.
75 container-prep:
76   extends:
77     - .fdo.container-build@arch
78   stage: prep
79   variables:
80     GIT_STRATEGY: none
84 # The default build, runs on the image built above.
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