Skip to content

Commit b5381f2

Browse files
committed
Add test_quick make target
1 parent 8129dc2 commit b5381f2

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ push:
1010

1111
# test: build the base image and example image on top, running tests therein.
1212
DOCKER_BASE_IMAGE:=vim-testbed-base
13-
test:
13+
14+
test test_quick:
1415
docker build -t "$(DOCKER_BASE_IMAGE)" .
15-
make -C example test
16+
make -C example $<
17+
18+
.PHONY: build push test test_quick

example/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM testbed/vim
22

3-
RUN install_vim -tag v7.1 -name vim71 -build \
4-
-tag v7.3.429 -name vim73 -py -build \
3+
RUN install_vim -tag v7.3.429 -name vim73 -py -build \
54
-tag v7.4.052 -name vim74-trusty -build \
65
-tag master -py2 -py3 -ruby -lua -build \
76
-tag neovim:v0.2.0 -py2 -py3 -ruby -build \

example/Dockerfile.quicktests

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Dockerfile for quick tests.
2+
FROM vim-testbed-base
3+
4+
RUN install_vim -tag v7.1 -name vim71 -build

example/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ DOCKER = docker run -a stderr --rm \
1212
-v $(WRITABLE_HOME):/home/vimtest \
1313
-v $(CURDIR)/$(PLUGINS):/home/vimtest/plugins "$(IMAGE)"
1414

15-
test: test-setup
15+
test_quick:
16+
docker build -f Dockerfile.quicktests -t "$(IMAGE)" .
17+
$(DOCKER) vim71 '+Vader! test/*'
18+
19+
test: Dockerfile.tests $(PLUGINS)/vader.vim
1620
docker build -f Dockerfile.tests -t "$(IMAGE)" .
1721
set -ex; \
1822
vims="$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep vim)"; \
@@ -68,9 +72,6 @@ test: test-setup
6872
exit 1; \
6973
fi;
7074

71-
test-setup: Dockerfile.tests $(PLUGINS)/vader.vim
72-
docker images -q $(IMAGE) || docker pull $(IMAGE)
73-
7475
Dockerfile.tests: Dockerfile
7576
( echo '# Autogenerated Dockerfile for tests.'; \
7677
echo '# Edit with care (generated from updates to Dockerfile).'; \
@@ -80,4 +81,4 @@ $(PLUGINS)/vader.vim:
8081
mkdir -p $(PLUGINS)
8182
cd $(PLUGINS) && git clone https://github.com/junegunn/vader.vim.git
8283

83-
.PHONY: test-setup test
84+
.PHONY: test

0 commit comments

Comments
 (0)