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: | install: |
pip install vim-vint==0.3.9 pip install vim-vint==0.3.9
script: | script: |
EXIT=0 make test
vint -s || EXIT=$?
make test || EXIT=$?
exit $EXIT

View File

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

View File

@ -7,8 +7,11 @@ test-setup:
test: test-setup test: test-setup
vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \ vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \
if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \ if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \
EXIT=0; \
for vim in $$vims; do \ for vim in $$vims; do \
$(DOCKER) $$vim '+Vader! test/*'; \ $(DOCKER) $$vim '+Vader! test/*' || EXIT=$$?; \
done done; \
$(DOCKER) vint -s /testplugin || EXIT=$$?; \
exit $$EXIT;
.PHONY: test-setup test .PHONY: test-setup test