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

[daniels: Only run on MRs.]

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
dev
Jonas Ådahl 3 years ago committed by Daniel Stone
parent 0bef636b04
commit 10c072b3f5
  1. 21
      .gitlab-ci.yml

@ -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:

Loading…
Cancel
Save