about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-10-09 16:10:51 +0200
committertoonn <toonn@toonn.io>2019-06-18 13:26:21 +0200
commite91ae58705d244f347c09c1c538245c02b0ea1ba (patch)
tree4474250acc9b7b77ee6bc0e79cc9368fb0121d21 /Makefile
parentf4d280c6fba8487ddfebb5883a4e126300d1746c (diff)
downloadranger-e91ae58705d244f347c09c1c538245c02b0ea1ba.tar.gz
Add shellcheck to tests
Shellcheck is run for `scope.sh` after uncommenting all the code.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c6b3b35d..c4bd5bb2 100644
--- a/Makefile
+++ b/Makefile
@@ -108,11 +108,15 @@ test_pytest:
 	@echo "Running py.test tests..."
 	py.test tests
 
+test_shellcheck:
+	@echo "Running shellcheck..."
+	sed '2,$$s/^\( *\)#/\1/' ./ranger/data/scope.sh | shellcheck -a -
+
 test_other:
 	@echo "Checking completeness of man page..."
 	@tests/manpage_completion_test.py
 
-test: test_pylint test_flake8 test_doctest test_pytest test_other
+test: test_pylint test_flake8 test_doctest test_pytest test_shellcheck test_other
 	@echo "Finished testing: All tests passed!"
 
 man: