This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/Makefile
2016-10-12 20:13:34 +08:00

17 lines
508 B
Makefile

IMAGE ?= w0rp/ale
DOCKER = docker run -a stderr --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=$$?; \
done; \
$(DOCKER) vint -s /testplugin || EXIT=$$?; \
exit $$EXIT;
.PHONY: test-setup test