Skip to content

Commit

Permalink
Travis: Run Vader tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwalch committed Dec 16, 2014
1 parent 10a4584 commit 0a797b5
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .ci/clang-asan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,41 @@ if ! $MAKE_CMD oldtest; then
fi
asan_check "$tmpdir"

coveralls --encoding iso-8859-1 || echo 'coveralls upload failed.'

# Test if correctly installed.
sudo -E $MAKE_CMD install
/usr/local/bin/nvim --version
/usr/local/bin/nvim -e -c "quit"

# Run Vader tests.
mkdir -p ~/.nvim/autoload
curl -fLo ~/.nvim/autoload/plug.vim \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cat > ~/.nvimrc <<EOS
let g:plug_threads=1
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vader.vim'
Plug 'junegunn/vim-emoji'
Plug 'junegunn/seoul256.vim'
Plug 'junegunn/vim-easy-align'
Plug 'junegunn/vim-after-object'
Plug 'junegunn/vim-plug'
Plug 'junegunn/vim-oblique'
Plug 'junegunn/vim-pseudocl'
Plug 'junegunn/limelight.vim'
Plug 'junegunn/fzf'
Plug 'justinmk/vim-sneak'
Plug 'mrtazz/simplenote.vim'
Plug 'edkolev/erlang-motions.vim'
Plug 'bruno-/vim-alt-mappings'
call plug#end()
EOS
# Use Vim to *install* the plugins.
# https://github.com/junegunn/vim-plug/issues/104
ln -s ~/.nvimrc ~/.vimrc
ln -s ~/.nvim ~/.vim
vim -c "PlugInstall" -c "qall"

This comment has been minimized.

Copy link
@aktau

aktau Dec 17, 2014

Can't this be done with nvim?

This comment has been minimized.

Copy link
@felipecrv

This comment has been minimized.

Copy link
@aktau

aktau Dec 17, 2014

Interesting, it seems like a jobwait() or jobjoin() might be necessary indeed. Do you think it requires more infrastructure or can job_wait() be repurposed, @tarruda?

This comment has been minimized.

Copy link
@tarruda

tarruda Dec 18, 2014

@aktau my first impression is that jobjoin() could be implemented by successive job_wait() calls, one for each job id passed as argument. Its very unlikely that this function is needed outside vimscript, so it could be implemented directly in eval.c with the following considerations:

  • Vimscript jobs have their callbacks deferred(push_job_event macro), but in this case they would need to be processed immediately, so some kind of flag is required.
  • Redrawing needs to be handled in the JobActivity autocommands set by jobjoin() caller(through the :redraw ex command)
for dir in ~/.nvim/plugged/*; do
/usr/local/bin/nvim -c "Vader! ${dir}/test*/*.vader" -c "qall" \
|| echo "Vader tests failed for ${dir}."
done

coveralls --encoding iso-8859-1 || echo 'coveralls upload failed.'

0 comments on commit 0a797b5

Please sign in to comment.