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:
parent
0bef636b04
commit
10c072b3f5
@ -10,9 +10,13 @@ include:
|
|||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/debian.yml'
|
file: '/templates/debian.yml'
|
||||||
|
- project: 'freedesktop/ci-templates'
|
||||||
|
ref: *template_sha
|
||||||
|
file: '/templates/ci-fairy.yml'
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- review
|
||||||
- container_prep
|
- container_prep
|
||||||
- build
|
- build
|
||||||
- pages
|
- pages
|
||||||
@ -28,6 +32,23 @@ stages:
|
|||||||
rules:
|
rules:
|
||||||
- when: on_success
|
- 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:
|
container_prep:
|
||||||
extends:
|
extends:
|
||||||
|
Loading…
Reference in New Issue
Block a user