koalaman / shellcheck Public
GitLab CI
Benjamin Faller edited this page Dec 22, 2021
·
8 revisions
Simple test job for GitLab (analyse testScript.sh):
test:
image: koalaman/shellcheck-alpine:latest
stage: test
script:
- shellcheck testScript.shHere is a CI job that will lint all shell-scripts in a Git repository:
test:
image: koalaman/shellcheck-alpine:latest
stage: test
before_script:
- apk update
- apk add git
script:
- git ls-files --exclude='*.sh' --ignored -c -z | xargs -0r shellcheck