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