]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add reuse lint CI job
authorOndřej Surý <ondrej@isc.org>
Thu, 3 Jun 2021 08:58:56 +0000 (10:58 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 11 Jan 2022 08:49:00 +0000 (09:49 +0100)
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.

(cherry picked from commit dbcff56043e6fbda4471a398466ae81d974ab28a)

.gitlab-ci.yml

index 6ff252f1b15f333c404957a001b2c22131ddb5f9..bfc1fca7595b1d983d06b2841a977a29b9db914d 100644 (file)
@@ -460,6 +460,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: []