15 lines
597 B
YAML
15 lines
597 B
YAML
---
|
|
shellcheck:
|
|
extends: .job
|
|
stage: unit-tests
|
|
variables:
|
|
SHELLCHECK_VERSION: v0.6.0
|
|
before_script:
|
|
- ./tests/scripts/rebase.sh
|
|
- curl --silent --location "https://github.com/koalaman/shellcheck/releases/download/"${SHELLCHECK_VERSION}"/shellcheck-"${SHELLCHECK_VERSION}".linux.x86_64.tar.xz" | tar -xJv
|
|
- cp shellcheck-"${SHELLCHECK_VERSION}"/shellcheck /usr/bin/
|
|
- shellcheck --version
|
|
script:
|
|
# Run shellcheck for all *.sh except contrib/
|
|
- find . -name '*.sh' -not -path './contrib/*' | xargs shellcheck --severity error
|
|
except: ['triggers', 'master']
|