ci: Use ci-fairy to check for Signed-off-by

[daniels: Only run on MRs.]

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2021-07-31 15:12:08 +01:00 committed by Daniel Stone
parent 0bef636b04
commit 10c072b3f5
1 changed files with 21 additions and 0 deletions

View File

@ -10,9 +10,13 @@ include:
- project: 'freedesktop/ci-templates'
ref: *template_sha
file: '/templates/debian.yml'
- project: 'freedesktop/ci-templates'
ref: *template_sha
file: '/templates/ci-fairy.yml'
stages:
- review
- container_prep
- build
- pages
@ -28,6 +32,23 @@ stages:
rules:
- when: on_success
# does not inherit .ci-rules
check-commit:
extends:
- .fdo.ci-fairy
stage: review
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
- when: never
script:
- ci-fairy check-commits --signed-off-by --junit-xml=results.xml
variables:
GIT_DEPTH: 100
artifacts:
reports:
junit: results.xml
container_prep:
extends: