Move vint to Docker

This commit is contained in:
Prashanth Chandra 2016-10-12 19:25:53 +08:00
parent 210d464442
commit 9a0a663dc1
3 changed files with 10 additions and 6 deletions

View file

@ -8,7 +8,4 @@ cache: pip
install: |
pip install vim-vint==0.3.9
script: |
EXIT=0
vint -s || EXIT=$?
make test || EXIT=$?
exit $EXIT
make test

View file

@ -5,9 +5,13 @@ RUN install_vim -tag v8.0.0000 -build \
ENV PACKAGES="\
git \
python=2.7.12-r0 \
py-pip=8.1.2-r0 \
"
RUN apk --update add $PACKAGES && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
RUN pip install vim-vint==0.3.9
RUN git clone https://github.com/junegunn/vader.vim vader && \
cd vader && git checkout c6243dd81c98350df4dec608fa972df98fa2a3af

View file

@ -7,8 +7,11 @@ test-setup:
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/*'; \
done
$(DOCKER) $$vim '+Vader! test/*' || EXIT=$$?; \
done; \
$(DOCKER) vint -s /testplugin || EXIT=$$?; \
exit $$EXIT;
.PHONY: test-setup test