aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-03-18 15:26:55 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2020-03-18 15:26:55 +0100
commitc074c0d51a6e3c7924a2ddea3ea418729564a252 (patch)
tree4303ec17a2a534c5c78ebd089307ca444800f15d /Makefile
parentecdc723c96e0a92fdda3a754edb0302cdc2de9eb (diff)
downloadg-c074c0d51a6e3c7924a2ddea3ea418729564a252.tar.gz
g-c074c0d51a6e3c7924a2ddea3ea418729564a252.zip
Bringing shellcheck into the mix
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 01ec0ab..e086ae1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
.PHONY: test
-test: git-validation unit-test
+test: git-validation shellcheck unit-test
.PHONY: unit-test
unit-test:
@@ -13,3 +13,11 @@ ifeq (, $(shell which git-validation 2> /dev/null))
else
@git-validation -q -range da5b6722c940..HEAD -travis-pr-only=false
endif
+
+.PHONY: shellcheck
+shellcheck:
+ifeq (, $(shell which shellcheck 2> /dev/null))
+ @echo "You don't have 'shellcheck' installed, consider installing it (see the CONTRIBUTING.org file)."
+else
+ @shellcheck g.sh
+endif