summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-12 23:55:09 +0100
committerw0rp <devw0rp@gmail.com>2016-10-12 23:55:09 +0100
commit217bb5cb4089a7434c19e045f62c8f91f4f8bd5a (patch)
tree337d04fd3cca78567b9bf6f412eada83a34de459 /Makefile
parentafec4df13f1cca25b68e27e1064230c5f9f20512 (diff)
downloadale-217bb5cb4089a7434c19e045f62c8f91f4f8bd5a.zip
Improve the output of the tests, and fix the style issue again.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5572ce7e..e8376deb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,31 @@
IMAGE ?= w0rp/ale
-DOCKER = docker run -a stderr --rm -v $(PWD):/testplugin -v $(PWD)/test:/home -v ${PWD}:/home/ale "$(IMAGE)"
+DOCKER_FLAGS = --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)"
test-setup:
docker images -q $(IMAGE) || docker pull $(IMAGE)
test: test-setup
+ @:; \
vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \
if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \
EXIT=0; \
for vim in $$vims; do \
- $(DOCKER) $$vim '+Vader! test/*' || EXIT=$$?; \
+ echo; \
+ echo '========================================'; \
+ echo "Running tests for $$vim"; \
+ echo '========================================'; \
+ echo; \
+ docker run -a stderr $(DOCKER_FLAGS) $$vim '+Vader! test/*' || EXIT=$$?; \
done; \
- $(DOCKER) vint -s /testplugin || EXIT=$$?; \
+ echo; \
+ echo '========================================'; \
+ echo 'Running Vint to lint our code'; \
+ echo '========================================'; \
+ echo 'Vint warnings/errors follow:'; \
+ echo; \
+ docker run -a stdout $(DOCKER_FLAGS) vint -s /testplugin | sed s:^/testplugin/:: || EXIT=$$?; \
+ echo; \
+ echo; \
exit $$EXIT;
-.PHONY: test-setup test
+.DEFAULT_GOAL := test