Skip to content
Snippets Groups Projects
Commit 530e1c32 authored by Maxime Guyot's avatar Maxime Guyot Committed by Kubernetes Prow Robot
Browse files

Add shellcheck CI (#4562)

parent f5aec8ad
No related branches found
No related tags found
No related merge requests found
...@@ -193,6 +193,7 @@ ci-authorized: ...@@ -193,6 +193,7 @@ ci-authorized:
include: include:
- .gitlab-ci/lint.yml - .gitlab-ci/lint.yml
- .gitlab-ci/shellcheck.yml
- .gitlab-ci/gce.yml - .gitlab-ci/gce.yml
- .gitlab-ci/digital-ocean.yml - .gitlab-ci/digital-ocean.yml
- .gitlab-ci/terraform.yml - .gitlab-ci/terraform.yml
......
# TODO(miouge1): Include
shellcheck:
extends: .job
stage: unit-tests
variables:
SHELLCHECK_VERSION: v0.6.0
before_script:
- 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']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment