diff --git a/example/Dockerfile b/example/Dockerfile index b4b2523..3844548 100644 --- a/example/Dockerfile +++ b/example/Dockerfile @@ -4,4 +4,4 @@ RUN install_vim -name vim-precise -tag v7.3.429 -build \ -name vim-trusty -tag v7.4.052 -build \ -name vim-vivid -tag v7.4.488 -build \ -name vim-wily -tag v7.4.712 -build \ - -name vim-xenial -tag v7.4.963 -build \ + -name vim-xenial -tag v7.4.963 -build diff --git a/example/Makefile b/example/Makefile index 964d61b..5babd65 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,6 +1,6 @@ IMAGE ?= tweekmonster/ubuntu-vims PLUGINS = test/plugins -DOCKER = docker run -it --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)" +DOCKER = docker run -a stderr --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)" $(PLUGINS)/vader.vim: mkdir -p $(PLUGINS) @@ -10,7 +10,9 @@ test-setup: $(PLUGINS)/vader.vim docker images -q $(IMAGE) || docker pull $(IMAGE) test: test-setup - for vim in $$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); do \ + 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