diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-06-11 14:45:24 +0200 |
---|---|---|
committer | Jordan Petridis <jordan@centricular.com> | 2020-11-27 02:49:30 +0200 |
commit | 12c1689aaaf307feb50f465565f6d752f16a1b0e (patch) | |
tree | 430cadeacb51a08b1522ed951e52da4710e96ee0 | |
parent | e8d4d1f3ada22ffb0851ba342dcc7a31c259e6f8 (diff) |
ci: check commit using ci-fairy
See https://freedesktop.pages.freedesktop.org/ci-templates/ci-fairy.html#checking-commits
In this setup it will check for any leftover fixup!/squash! commits and
that messages don't have the 'Signed-off-by:' tag.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/304>
-rw-r--r-- | gitlab/ci_template.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index 788d960..e09faa8 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -1,3 +1,6 @@ +include: + - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/ci-fairy.yml" + stages: - 'build docker' - 'preparation' @@ -389,6 +392,18 @@ gst indent: fi # +# Check commit messages with ci-fairy +# +check commits: + extends: '.fdo.ci-fairy' + needs: [] + stage: 'preparation' + variables: + GIT_STRATEGY: 'fetch' + script: + - ci-fairy check-commits --textwidth 0 --no-signed-off-by + +# # gst-build setup templates # .gst_build_template: &gst_build |