]> 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 22:13:04 +0000 (23:13 +0100)
(cherry picked from commit 47a7c5123a540f11c57387b9b1556c3445d43975)

.gitlab-ci.yml

index 2c875c97f502c06fa2b9b600b2b195e51e9e7ea9..4608e1dc7a3250c12b064efd5daeef12be15000b 100644 (file)
@@ -521,6 +521,12 @@ pylint:
       # Ignore Pylint wrong-import-position error in system test to enable use of pytest.importorskip
     - pylint --rcfile $CI_PROJECT_DIR/.pylintrc --disable=wrong-import-position $(git ls-files 'bin/tests/system/*.py' | grep -vE 'ans\.py')
 
+checkbashisms:
+  <<: *precheck_job
+  needs: []
+  script:
+    - checkbashisms $(find . -path './.git' -prune -o -type f -exec sh -c 'head -n 1 "{}" | grep -qsF "#!/bin/sh"' \; -print | sed -e '/^\.\/install-sh$/d')
+
 tarball-create:
   stage: precheck
   <<: *base_image