Tests: automatically fetch Vader if needed
This commit is contained in:
parent
62512237a5
commit
d4ff491d6e
|
@ -4,7 +4,7 @@ before_script: |
|
|||
git clone https://github.com/junegunn/vader.vim.git
|
||||
|
||||
script: |
|
||||
vim --nofork -XNu <(cat << EOF
|
||||
vim -XNu <(cat << EOF
|
||||
filetype off
|
||||
set runtimepath+=vader.vim
|
||||
set runtimepath+=.
|
||||
|
|
18
test/run
18
test/run
|
@ -1,10 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
vim --nofork -XNu <(cat << EOF
|
||||
filetype off
|
||||
set runtimepath+=~/.vim/bundle/vader.vim
|
||||
set runtimepath+=..
|
||||
filetype plugin on
|
||||
syntax enable
|
||||
set hidden
|
||||
EOF) +Vader*
|
||||
vader="${HOME}/.vim/*bundle*/vader.vim"
|
||||
|
||||
if [ -d $vader ]; then
|
||||
[[ ! -L vader.vim ]] && ln -s $vader
|
||||
else
|
||||
git clone https://github.com/junegunn/vader.vim.git
|
||||
fi
|
||||
|
||||
echo '(Be patient.. testing can take a while.)'
|
||||
vim -XNu vimrc -i NONE -c 'Vader! *' >/dev/null
|
||||
|
|
|
@ -21,3 +21,10 @@ Do (open new buffer in normal mode with 'e'):
|
|||
eibar
|
||||
Expect (only "bar"):
|
||||
bar
|
||||
|
||||
Given:
|
||||
quux
|
||||
Do (quit startify buffer via 'q'):
|
||||
q
|
||||
Expect:
|
||||
quux
|
||||
|
|
Loading…
Reference in a new issue