summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPrashanth Chandra <coolshanth94@gmail.com>2016-10-11 10:28:25 +0800
committerPrashanth Chandra <coolshanth94@gmail.com>2016-10-12 18:59:18 +0800
commit210d464442eb16c4450816307b5f52c7c6994913 (patch)
tree24d3cef71b98db8983fe77487474ad41e3ff6a27 /Makefile
parentd8d08de26cb17c9319a08c0c5f611c6778260030 (diff)
downloadale-210d464442eb16c4450816307b5f52c7c6994913.zip
Use vim-testbed to run Vader tests on Travis
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..292f20bd
--- /dev/null
+++ b/Makefile
@@ -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