Move vint to Docker
This commit is contained in:
parent
210d464442
commit
9a0a663dc1
3 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Reference in a new issue