about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-11-13 21:11:29 +0100
committertoonn <toonn@toonn.io>2020-11-13 21:11:29 +0100
commitaa5495e4167fe7bcfd0e3274aaedd61f97e9e9c5 (patch)
treea5265ee1deb9cab56ccde31616b9b6857c68e670
parenta9ba169b902661d67678b3eb68833b971fd1f43a (diff)
parent9ed367206da27f62b503a88d1020385dc06d00e3 (diff)
downloadranger-aa5495e4167fe7bcfd0e3274aaedd61f97e9e9c5.tar.gz
Merge branch 'pretty-make'
-rw-r--r--Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 82a6153a..0cb35bd4 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,9 @@ FILTER ?= .
 
 CWD = $(shell pwd)
 
+bold := $(shell tput bold)
+normal := $(shell tput sgr0)
+
 default: test compile
 	@echo 'Run `make options` for a list of all options'
 
@@ -91,39 +94,45 @@ TEST_PATHS_MAIN = \
 TEST_PATH_CONFIG = ./ranger/config
 
 test_pylint:
-	@echo "Running pylint..."
+	@echo "$(bold)Running pylint...$(normal)"
 	pylint $(TEST_PATHS_MAIN)
 	pylint --rcfile=$(TEST_PATH_CONFIG)/.pylintrc $(TEST_PATH_CONFIG)
 
 test_flake8:
-	@echo "Running flake8..."
+	@echo "$(bold)Running flake8...$(normal)"
 	flake8 $(TEST_PATHS_MAIN) $(TEST_PATH_CONFIG)
+	@echo
 
 test_doctest:
-	@echo "Running doctests..."
+	@echo "$(bold)Running doctests...$(normal)"
 	@set -e; \
 	for FILE in $(shell grep -IHm 1 doctest -r ranger | grep $(FILTER) | cut -d: -f1); do \
 		echo "Testing $$FILE..."; \
 		RANGER_DOCTEST=1 PYTHONPATH=".:"$$PYTHONPATH ${PYTHON} $$FILE; \
 	done
+	@echo
 
 test_pytest:
-	@echo "Running py.test tests..."
+	@echo "$(bold)Running py.test tests...$(normal)"
 	py.test tests
+	@echo
 
 test_py: test_pylint test_flake8 test_doctest test_pytest test_other
-	@echo "Finished python and documentation tests!"
+	@echo "$(bold)Finished python and documentation tests!$(normal)"
+	@echo
 
 test_shellcheck:
-	@echo "Running shellcheck..."
+	@echo "$(bold)Running shellcheck...$(normal)"
 	sed '2,$$s/^\(\s*\)#/\1/' ./ranger/data/scope.sh | shellcheck -a -
+	@echo
 
 test_other:
-	@echo "Checking completeness of man page..."
+	@echo "$(bold)Checking completeness of man page...$(normal)"
 	@tests/manpage_completion_test.py
+	@echo
 
 test: test_py test_shellcheck
-	@echo "Finished testing: All tests passed!"
+	@echo "$(bold)Finished testing: All tests passed!$(normal)"
 
 doc/ranger.1: doc/ranger.pod README.md
 	pod2man --stderr --center='ranger manual' \