Use vim-testbed to run Vader tests on Travis

This commit is contained in:
Prashanth Chandra
2016-10-11 10:28:25 +08:00
parent d8d08de26c
commit 210d464442
5 changed files with 67 additions and 4 deletions

14
Makefile Normal file
View File

@@ -0,0 +1,14 @@
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; \
for vim in $$vims; do \
$(DOCKER) $$vim '+Vader! test/*'; \
done
.PHONY: test-setup test