From 10c072b3f559217058cdfc94930946b2b2c0cbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 31 Jul 2021 15:12:08 +0100 Subject: [PATCH] ci: Use ci-fairy to check for Signed-off-by MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [daniels: Only run on MRs.] Signed-off-by: Jonas Ã…dahl --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6c1573e..030db11b 100644 --- a/.gitlab-ci.yml +++ b/.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: