File tree Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ update_latest:
14
14
15
15
# test: build the base image and example image on top, running tests therein.
16
16
DOCKER_BASE_IMAGE: =vim-testbed-base
17
- test :
17
+
18
+ test test_quick :
18
19
docker build -t " $( DOCKER_BASE_IMAGE) " .
19
- make -C example test
20
+ make -C example $<
21
+
22
+ .PHONY : build push test test_quick
Original file line number Diff line number Diff line change 1
1
FROM testbed/vim
2
2
3
- RUN install_vim -tag v7.1 -name vim71 -prebuild_script 'echo "#define FEAT_PROFILE" >> src/feature.h' -build \
4
- -tag v7.3.429 -name vim73 -py -build \
3
+ RUN install_vim -tag v7.3.429 -name vim73 -py -build \
5
4
-tag v7.4.052 -name vim74-trusty -build \
6
5
-tag master -py2 -py3 -ruby -lua -build \
7
6
-tag neovim:v0.2.0 -py2 -py3 -ruby -build \
Original file line number Diff line number Diff line change
1
+ # Dockerfile for quick tests.
2
+ FROM vim-testbed-base
3
+
4
+ RUN install_vim -tag v7.1 -name vim71 \
5
+ -prebuild_script 'echo "#define FEAT_PROFILE" >> src/feature.h' -build
Original file line number Diff line number Diff line change @@ -12,8 +12,17 @@ DOCKER = docker run -a stderr --rm \
12
12
-v $(WRITABLE_HOME ) :/home/vimtest \
13
13
-v $(CURDIR ) /$(PLUGINS ) :/home/vimtest/plugins "$(IMAGE ) "
14
14
15
- test : build $(PLUGINS ) /vader.vim
16
- test : test_vim71_with_profiling_enabled
15
+ test_quick : $(PLUGINS ) /vader.vim
16
+ test_quick :
17
+ docker build -f Dockerfile.quicktests -t " $( IMAGE) " .
18
+ docker run --rm " $( IMAGE) " vim71 -es -u NORC -c " exe has('profile') ? 'q' : 'cq'" || { \
19
+ echo " vim71 should have FEAT_PROFILE enabled." ; \
20
+ docker run --rm " $( IMAGE) " vim71 --version; \
21
+ exit 1; }
22
+ $(DOCKER ) vim71 ' +Vader! test/*'
23
+
24
+ test : test_quick
25
+ test : Dockerfile.tests $(PLUGINS ) /vader.vim
17
26
test :
18
27
set -ex; \
19
28
vims=" $$ (docker run --rm $( IMAGE) ls /vim-build/bin | grep vim)" ; \
69
78
exit 1; \
70
79
fi
71
80
72
- test_vim71_with_profiling_enabled :
73
- docker run --rm " $( IMAGE) " vim71 -es -u NORC -c " exe has('profile') ? 'q' : 'cq'" || { \
74
- echo " vim71 should have FEAT_PROFILE enabled." ; \
75
- docker run --rm " $( IMAGE) " vim71 --version; \
76
- exit 1; }
77
-
78
81
build : Dockerfile.tests
79
82
docker build -f Dockerfile.tests -t " $( IMAGE) " .
80
83
@@ -87,4 +90,4 @@ $(PLUGINS)/vader.vim:
87
90
mkdir -p $(PLUGINS )
88
91
cd $(PLUGINS ) && git clone https://github.com/junegunn/vader.vim.git
89
92
90
- .PHONY : test-setup test
93
+ .PHONY : test
You can’t perform that action at this time.
0 commit comments