Test vim also

This commit is contained in:
baabelfish 2016-03-17 01:45:40 +02:00
commit 5b1d72deaf
3 changed files with 18 additions and 13 deletions

View file

@ -1,3 +1,4 @@
set nocompatible
filetype off
set rtp+=./plugins/vader.vim
set rtp+=..

View file

@ -6,15 +6,18 @@ if [[ ! -d plugins ]]; then
git clone https://github.com/baabelfish/vader.vim plugins/vader.vim
fi
# Run tests
# Running test
nvim -u rc.vim -c 'Vader! tests/**/*.vader'
# nvim -u rc.vim -c 'Vader! tests/**/*.vader' > /dev/null
err=$?
if [ "$err" != "0" ]; then
cat report.log
exit 1
else
echo ""
echo "Great success!"
fi
function testExecutable() {
echo "Testing $1"
$1 -u rc.vim -c 'Vader! tests/**/*.vader'
err=$?
if [ "$err" != "0" ]; then
cat report.log
exit 1
else
echo ""
echo "Great success!"
fi
}
testExecutable "nvim"
testExecutable "vim"