2019-04-20 13:15:41 +00:00
|
|
|
---
|
2019-04-19 06:57:54 +00:00
|
|
|
shellcheck:
|
|
|
|
extends: .job
|
|
|
|
stage: unit-tests
|
|
|
|
variables:
|
|
|
|
SHELLCHECK_VERSION: v0.6.0
|
|
|
|
before_script:
|
2019-04-24 08:38:01 +00:00
|
|
|
- ./tests/scripts/rebase.sh
|
2019-04-19 06:57:54 +00:00
|
|
|
- curl --silent "https://storage.googleapis.com/shellcheck/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']
|