.gitlab-ci.yml revision d9d3a8d2
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
22stages:
23  - sanity check
24  - prep
25  - build
26
27variables:
28  FDO_UPSTREAM_REPO: xorg/lib/libxcvt
29  MESON_BUILDDIR: "builddir"
30  NINJA_ARGS: ''
31  MESON_ARGS: ''
32  MESON_TEST_ARGS: ''
33  GIT_DEPTH: 1
34
35.policy:
36  retry:
37    max: 2
38    when:
39      - runner_system_failure
40      - stuck_or_timeout_failure
41  # cancel run when a newer version is pushed to the branch
42  interruptible: true
43
44
45# Re-generate the CI script and make sure it's the one currently checked in
46# If this job fails, re-generate the gitlab-ci.yml script, see
47# $SRCDIR/.gitlab-ci/generate-gitlab-ci.py
48#
49check-ci-script:
50  extends:
51    - .fdo.ci-fairy
52  stage: sanity check
53  script:
54    - ci-fairy generate-template --verify && exit 0 || true
55    - echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
56    - exit 1
57
58#
59# Verify that commit messages are as expected, signed-off, etc.
60#
61check-commit:
62  extends:
63    - .fdo.ci-fairy
64  stage: sanity check
65  script:
66    - ci-fairy check-commits --signed-off-by --junit-xml=results.xml
67  except:
68    - master@xorg/lib/libxcvt
69  variables:
70    GIT_DEPTH: 100
71  artifacts:
72    reports:
73      junit: results.xml
74
75#
76# Verify that merge request has the "allow collaboration" checkbox ticked
77#
78check-merge-request:
79  extends:
80    - .fdo.ci-fairy
81  stage: sanity check
82  script:
83    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
84  artifacts:
85    when: on_failure
86    reports:
87      junit: results.xml
88  allow_failure: true
89
90
91.fedora.34:
92  variables:
93    FDO_DISTRIBUTION_VERSION: '34'
94    FDO_DISTRIBUTION_TAG: '2021-07-26.0'
95
96prep-fedora-34:
97  extends:
98    - .fdo.container-build@fedora
99    - .fedora.34
100  stage: prep
101  variables:
102    FDO_DISTRIBUTION_PACKAGES: "meson gcc"
103
104build-fedora-34:
105  extends:
106    - .fdo.distribution-image@fedora
107    - .fedora.34
108  stage: build
109  script:
110    - .gitlab-ci/meson-build.sh
111