Commit 2826441 1 parent e3679d8 commit 2826441 Copy full SHA for 2826441
File tree 6 files changed +18
-17
lines changed
6 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ RUN apk --no-cache upgrade
4
4
5
5
RUN adduser -h /home/vimtest -s /bin/sh -D -u 8465 vimtest
6
6
7
- RUN mkdir -p /vim /vim-build/bin /plugins
8
- RUN chown vimtest:vimtest /home /plugins
7
+ RUN mkdir -p /vim /vim-build/bin
9
8
10
9
# Useful during tests to have these packages in a deeper layer cached already.
11
10
# RUN apk --no-cache add --virtual vim-build build-base
@@ -14,14 +13,17 @@ ADD scripts/argecho.sh /vim-build/bin/argecho
14
13
ADD scripts/install_vim.sh /sbin/install_vim
15
14
ADD scripts/run_vim.sh /sbin/run_vim
16
15
17
- RUN chmod +x /vim-build/bin/argecho /sbin/install_vim /sbin/run_vim
16
+ RUN mkdir /home/vimtest/.vim /home/vimtest/.config
17
+ ADD scripts/init.vim /home/vimtest/.vim/
18
+ RUN ln -s ../.vim /home/vimtest/.config/nvim
19
+ RUN ln -s .vim/init.vim /home/vimtest/.vimrc
18
20
19
- ADD scripts/rtp. vim /rtp.vim
21
+ RUN chmod +x / vim-build/bin/argecho /sbin/install_vim /sbin/run_vim
20
22
21
23
# The user directory for setup
22
24
VOLUME /home/vimtest
23
25
24
26
# Your plugin
25
- VOLUME /testplugin
27
+ VOLUME /testbed
26
28
27
29
ENTRYPOINT ["/sbin/run_vim" ]
Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ WRITABLE_HOME:=$(shell tmpdir=$$(mktemp -d --dry-run); \
7
7
cd $(CURDIR ) /test; \
8
8
cp -a vimrc * .vader $${tmpdir}/; \
9
9
echo $${tmpdir})
10
- DOCKER = docker run -a stderr --rm \
11
- -v $(CURDIR ) :/testplugin \
12
- -v $(WRITABLE_HOME ) :/home/vimtest \
13
- -v $(CURDIR ) /$(PLUGINS ) :/home/vimtest/plugins "$(IMAGE ) "
10
+ DOCKER = docker run -ti --rm \
11
+ -v $(CURDIR ) :/testbed \
12
+ -v $(CURDIR ) /$(PLUGINS ) :/home/testbed/.vim/plugins "$(IMAGE ) "
14
13
15
14
test : build $(PLUGINS ) /vader.vim
16
15
test : test_vim71_with_profiling_enabled
Original file line number Diff line number Diff line change 1
1
" vint: -ProhibitSetNoCompatible
2
- source /rtp .vim
2
+
3
+ let s: this_dir = expand (' <sfile>:h' )
4
+ exe ' set runtimepath+=' .s: this_dir .' /test/plugins/vader.vim'
3
5
4
6
filetype plugin indent on
5
7
syntax on
Original file line number Diff line number Diff line change
1
+ set runtimepath += /testbed
2
+ source /testbed/ testbed.vim
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if ! [ -x "/vim-build/bin/$BIN" ]; then
15
15
fi
16
16
17
17
# Set default vimrc to a visible file
18
- ARGS=" -u /home/vimtest/vimrc - i NONE"
18
+ ARGS=" -i NONE"
19
19
20
20
# Run as the vimtest user (when no USER is specified in the Dockerfile, i.e.
21
21
# when running as root).
@@ -27,10 +27,9 @@ if [ "$(id -u)" = 0 ]; then
27
27
ARGS=" $ARGS \" $1 \" "
28
28
shift
29
29
done
30
- exec su -l vimtest -c " cd /testplugin && /vim-build/bin/$BIN $ARGS "
30
+ exec su -l vimtest -c " cd /testbed && /vim-build/bin/$BIN $ARGS "
31
31
fi
32
32
33
- cd /testplugin || exit
34
-
33
+ cd /testbed || exit
35
34
# shellcheck disable=SC2086
36
35
exec " /vim-build/bin/$BIN " " $@ "
You can’t perform that action at this time.
0 commit comments