]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add checkbashisms CI job
authorMichal Nowak <mnowak@isc.org>
Tue, 2 Aug 2022 14:56:48 +0000 (16:56 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 14 Nov 2022 19:54:42 +0000 (19:54 +0000)
.gitlab-ci.yml

index dffb57e0b7be100a1718fcf4313f7b756053cfc7..25b885de22a9248d49e4f5b38ed54b9a8e349bfe 100644 (file)
@@ -509,6 +509,12 @@ danger:
     variables:
       - $DANGER_GITLAB_API_TOKEN
 
+checkbashisms:
+  <<: *precheck_job
+  needs: []
+  script:
+    - checkbashisms $(find . -path './.git' -prune -o -type f -exec sh -c 'head -n 1 "{}" | grep -qsF "#!/bin/sh"' \; -print)
+
 tarball-create:
   stage: precheck
   <<: *base_image