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 git clone https://github.com/junegunn/vader.vim.git
script: | script: |
vim --nofork -XNu <(cat << EOF vim -XNu <(cat << EOF
filetype off filetype off
set runtimepath+=vader.vim set runtimepath+=vader.vim
set runtimepath+=. set runtimepath+=.

View file

@ -1,10 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
vim --nofork -XNu <(cat << EOF vader="${HOME}/.vim/*bundle*/vader.vim"
filetype off
set runtimepath+=~/.vim/bundle/vader.vim if [ -d $vader ]; then
set runtimepath+=.. [[ ! -L vader.vim ]] && ln -s $vader
filetype plugin on else
syntax enable git clone https://github.com/junegunn/vader.vim.git
set hidden fi
EOF) +Vader*
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 eibar
Expect (only "bar"): Expect (only "bar"):
bar bar
Given:
quux
Do (quit startify buffer via 'q'):
q
Expect:
quux