Skip to content

Commit

Permalink
Add shellcheck CI (kubernetes-sigs#4562)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miouge1 authored and k8s-ci-robot committed Apr 19, 2019
1 parent f5aec8a commit 530e1c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ ci-authorized:

include:
- .gitlab-ci/lint.yml
- .gitlab-ci/shellcheck.yml
- .gitlab-ci/gce.yml
- .gitlab-ci/digital-ocean.yml
- .gitlab-ci/terraform.yml
Expand Down
14 changes: 14 additions & 0 deletions .gitlab-ci/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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 comments on commit 530e1c3

Please sign in to comment.