mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-25 19:17:23 +08:00
Use vim-testbed to run Vader tests on Travis
This commit is contained in:
14
Makefile
Normal file
14
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user