For a basic configuration, place the following in your
.drone.yml
:
---
kind: pipeline
type: docker
name: default
steps:
- name: shellcheck
image: koalaman/shellcheck-alpine:stable
commands:
- "shellcheck testScript.sh"
To check all .sh
files in the repo:
steps:
- name: shellcheck
image: koalaman/shellcheck-alpine:stable
commands:
- "find . -name *.sh -exec shellcheck {} +"
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.