From dbcff56043e6fbda4471a398466ae81d974ab28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 3 Jun 2021 10:58:56 +0200 Subject: [PATCH] Add reuse lint CI job Instead of checking for the licenses in the misc step, add a separate job that uses the upstream provided image that has reuse tool installed and run `reuse lint` from the separate job. --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3958fb1642..6ebad9ab73 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -452,6 +452,15 @@ coccinelle: - util/check-cocci - if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi +reuse: + <<: *precheck_job + needs: [] + image: + name: docker.io/fsfe/reuse:latest + entrypoint: [""] + script: + - reuse lint + danger: <<: *precheck_job needs: []