Simple test job for GitLab (analyse testScript.sh):
test: image: koalaman/shellcheck-alpine:latest stage: test script: - shellcheck testScript.sh
Here 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 -z | xargs -0r shellcheck
There was an error while loading. Please reload this page.