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