From: Michal Nowak Date: Tue, 2 Aug 2022 14:56:48 +0000 (+0200) Subject: Add checkbashisms CI job X-Git-Tag: v9.16.36~29^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9cf52e51abb25cc3174750f3ffb734a75672413b;p=thirdparty%2Fbind9.git Add checkbashisms CI job (cherry picked from commit 47a7c5123a540f11c57387b9b1556c3445d43975) --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c875c97f50..4608e1dc7a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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