Merge pull request #11 from pohly/verify-shellcheck

verify shellcheck
This commit is contained in:
Kubernetes Prow Robot
2019-04-02 08:59:18 -07:00
committed by GitHub
4 changed files with 321 additions and 0 deletions

View File

@@ -132,3 +132,18 @@ test: test-subtree
test-subtree:
@ echo; echo "### $@:"
./release-tools/verify-subtree.sh release-tools
# Components can extend the set of directories which must pass shellcheck.
# The default is to check only the release-tools directory itself.
TEST_SHELLCHECK_DIRS=release-tools
.PHONY: test-shellcheck
test: test-shellcheck
test-shellcheck:
@ echo; echo "### $@:"
@ ret=0; \
for dir in $(abspath $(TEST_SHELLCHECK_DIRS)); do \
echo; \
echo "$$dir:"; \
./release-tools/verify-shellcheck.sh "$$dir" || ret=1; \
done; \
return $$ret