From 4b553c3ae7ad14334fcb6e33329d6e67860ae6ba Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 11 Jun 2020 14:28:23 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 10 ++++++++-- ci/images_template.yml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f60221447..651152167 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,8 +73,8 @@ stages: - .fdo.container-build@debian stage: container-base variables: - FDO_DISTRIBUTION_PACKAGES: "build-essential curl liborc-0.4-dev libglib2.0-dev libxml2-dev libgtk-3-dev libegl1-mesa libgles2-mesa libgl1-mesa-dri libgl1-mesa-glx libwayland-egl1-mesa xz-utils libssl-dev git wget ca-certificates ninja-build python3-pip flex bison libglib2.0-dev" - FDO_DISTRIBUTION_EXEC: 'bash ci/install-gst.sh' + FDO_DISTRIBUTION_PACKAGES: "build-essential curl python3-setuptools liborc-0.4-dev libglib2.0-dev libxml2-dev libgtk-3-dev libegl1-mesa libgles2-mesa libgl1-mesa-dri libgl1-mesa-glx libwayland-egl1-mesa xz-utils libssl-dev git wget ca-certificates ninja-build python3-pip flex bison libglib2.0-dev" + FDO_DISTRIBUTION_EXEC: 'bash ci/install-gst.sh && pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates' .build-final-image: extends: @@ -259,6 +259,12 @@ rustfmt: - cargo fmt --version - cargo fmt -- --color=always --check +check commits: + extends: .img-stable + stage: "lint" + script: + - ci-fairy check-commits --textwidth 0 --no-signed-off-by + clippy: extends: .img-stable stage: 'extras' diff --git a/ci/images_template.yml b/ci/images_template.yml index 287975dbe..15a11a48b 100644 --- a/ci/images_template.yml +++ b/ci/images_template.yml @@ -1,2 +1,2 @@ variables: - GST_RS_IMG_TAG: '2020-06-09.0' + GST_RS_IMG_TAG: '2020-06-11.0'