add shellcheck make target
Shell linter: https://github.com/koalaman/shellcheck Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
Родитель
cf6af1c0d6
Коммит
b39937bd14
5
Makefile
5
Makefile
|
@ -3,6 +3,7 @@ VERIFY_INSTALL_DISTROS:=$(addprefix verify-install-,centos-7 fedora-24 fedora-25
|
|||
CHANNEL_TO_TEST?=test
|
||||
EXPECTED_VERSION?=
|
||||
EXPECTED_GITCOMMIT?=
|
||||
SHELLCHECK=shellcheck
|
||||
|
||||
.PHONY: needs_version
|
||||
needs_version:
|
||||
|
@ -16,6 +17,10 @@ ifndef EXPECTED_GITCOMMIT
|
|||
$(error EXPECTED_GITCOMMIT is undefined)
|
||||
endif
|
||||
|
||||
.PHONY: shellcheck
|
||||
shellcheck:
|
||||
$(SHELLCHECK) install.sh
|
||||
|
||||
.PHONY: check
|
||||
check: $(VERIFY_INSTALL_DISTROS)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче