Skip to content

Commit e313373

Browse files
committed
Move vint to Docker
1 parent 210d464 commit e313373

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.travis.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ cache: pip
88
install: |
99
pip install vim-vint==0.3.9
1010
script: |
11-
EXIT=0
12-
vint -s || EXIT=$?
13-
make test || EXIT=$?
14-
exit $EXIT
11+
make test

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ RUN install_vim -tag v8.0.0000 -build \
55

66
ENV PACKAGES="\
77
git \
8+
python=2.7.12-r0 \
9+
py-pip=8.1.2-r0 \
810
"
911
RUN apk --update add $PACKAGES && \
1012
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
1113

14+
RUN pip install vim-vint==0.3.9
15+
1216
RUN git clone https://github.com/junegunn/vader.vim vader && \
1317
cd vader && git checkout c6243dd81c98350df4dec608fa972df98fa2a3af

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ test-setup:
77
test: test-setup
88
vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \
99
if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \
10+
EXIT=0
1011
for vim in $$vims; do \
11-
$(DOCKER) $$vim '+Vader! test/*'; \
12+
$(DOCKER) $$vim '+Vader! test/*' || EXIT=$$?; \
1213
done
14+
vint -s . || EXIT=$$?
15+
exit $$EXIT
1316

1417
.PHONY: test-setup test

0 commit comments

Comments
 (0)