Skip to content
Snippets Groups Projects
Unverified Commit 941df5aa authored by Jakko's avatar Jakko Committed by Oliver Smith
Browse files

Add shellcheck CI (MR 2)

parent ff6fe253
No related branches found
No related tags found
1 merge request!2Add shellcheck CI
Pipeline #141267 passed
#!/bin/sh -e
# Description: lint all shell scripts
# https://postmarktos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add shellcheck
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
find . -name '*.sh' |
while read -r file; do
echo "shellcheck: $file"
shellcheck "$file"
done
# global settings
image: alpine:latest
stages:
- lint
# shellcheck
shellcheck:
stage: lint
image: alpine:edge
before_script:
- adduser -D build
script:
- .ci/shellcheck.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment