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.
This commit is contained in:
nl6720 2020-07-30 10:00:37 +03:00
parent a96330699f
commit d7fc56e006
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369
2 changed files with 5 additions and 3 deletions

View File

@ -10,4 +10,4 @@ default:
lint: lint:
stage: build stage: build
script: script:
- make check - make lint

View File

@ -16,7 +16,9 @@ DOC_DIR=$(DESTDIR)/usr/share/doc/archiso
all: all:
check: check: lint
lint:
shellcheck -s bash archiso/mkarchiso \ shellcheck -s bash archiso/mkarchiso \
scripts/run_archiso.sh \ scripts/run_archiso.sh \
$(INSTALL_FILES) \ $(INSTALL_FILES) \
@ -44,4 +46,4 @@ install-examples:
install-doc: install-doc:
install -vDm 644 $(DOC_FILES) -t $(DOC_DIR) 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