Tests: automatically fetch Vader if needed

This commit is contained in:
Daniel Hahler 2014-11-20 16:50:38 +01:00 committed by Marco Hinz
parent 62512237a5
commit d4ff491d6e
3 changed files with 18 additions and 9 deletions

View file

@ -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+=.

View file

@ -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

View file

@ -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