.gitlab-ci.yml revision 8db88b12
1
2#####################################################
3#                                                   #
4#       THIS FILE IS GENERATED, DO NOT EDIT!        #
5#                                                   #
6# Generated with "ci-fairy generate-template", edit #
7# .gitlab-ci/ci.template and .gitlab-ci/config.yml  #
8# and rerun "ci-fairy generate-template" to change  #
9# this file.                                        #
10#                                                   #
11#####################################################
12
13.templates_sha: &template_sha 3d03cccd770c04e63b40325b42223495274d6a1d
14
15include:
16  - project: 'freedesktop/ci-templates'
17    ref: *template_sha
18    file:
19      - '/templates/ci-fairy.yml'
20      - '/templates/fedora.yml'
21  - template: Security/SAST.gitlab-ci.yml
22
23stages:
24  - sanity check
25  - prep
26  - build
27  - test
28
29variables:
30  FDO_UPSTREAM_REPO: xorg/lib/libxcvt
31  MESON_BUILDDIR: "builddir"
32  NINJA_ARGS: ''
33  MESON_ARGS: ''
34  MESON_TEST_ARGS: ''
35  GIT_DEPTH: 1
36
37.policy:
38  retry:
39    max: 2
40    when:
41      - runner_system_failure
42      - stuck_or_timeout_failure
43  # cancel run when a newer version is pushed to the branch
44  interruptible: true
45
46
47# Re-generate the CI script and make sure it's the one currently checked in
48# If this job fails, re-generate the gitlab-ci.yml script, see
49# $SRCDIR/.gitlab-ci/generate-gitlab-ci.py
50#
51check-ci-script:
52  extends:
53    - .fdo.ci-fairy
54  stage: sanity check
55  script:
56    - ci-fairy generate-template --verify && exit 0 || true
57    - echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
58    - exit 1
59
60#
61# Verify that commit messages are as expected, signed-off, etc.
62#
63check-commit:
64  extends:
65    - .fdo.ci-fairy
66  stage: sanity check
67  script:
68    - ci-fairy check-commits --signed-off-by --junit-xml=results.xml
69  except:
70    - master@xorg/lib/libxcvt
71  variables:
72    GIT_DEPTH: 100
73  artifacts:
74    reports:
75      junit: results.xml
76
77#
78# Verify that merge request has the "allow collaboration" checkbox ticked
79#
80check-merge-request:
81  extends:
82    - .fdo.ci-fairy
83  stage: sanity check
84  script:
85    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
86  artifacts:
87    when: on_failure
88    reports:
89      junit: results.xml
90  allow_failure: true
91
92
93.fedora.34:
94  variables:
95    FDO_DISTRIBUTION_VERSION: '34'
96    FDO_DISTRIBUTION_TAG: '2022-08-03.0'
97
98prep-fedora-34:
99  extends:
100    - .fdo.container-build@fedora
101    - .fedora.34
102  stage: prep
103  variables:
104    FDO_DISTRIBUTION_PACKAGES: "meson gcc"
105
106build-fedora-34:
107  extends:
108    - .fdo.distribution-image@fedora
109    - .fedora.34
110  stage: build
111  script:
112    - .gitlab-ci/meson-build.sh
113