From d7fc56e0066fc0bdfd1d45e4e67f53b218609897 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Thu, 30 Jul 2020 10:00:37 +0300 Subject: Move shell script linting into a separate make target Makefile: Move shellcheck to a "lint" target and change "check" so that it runs "lint". This provides a more finer grained control and allows to extend "check" with things beyond just linting. .gitlab-ci.yml: Run `make lint` in the lint job. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ff43376..573d044 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,9 @@ DOC_DIR=$(DESTDIR)/usr/share/doc/archiso all: -check: +check: lint + +lint: shellcheck -s bash archiso/mkarchiso \ scripts/run_archiso.sh \ $(INSTALL_FILES) \ @@ -44,4 +46,4 @@ install-examples: install-doc: install -vDm 644 $(DOC_FILES) -t $(DOC_DIR) -.PHONY: check install install-program install-initcpio install-examples install-doc +.PHONY: check install install-program install-initcpio install-examples install-doc lint -- cgit v1.2.3-54-g00ecf