Test with Neovim

This commit is contained in:
Daniel Hahler
2018-07-29 20:56:21 +02:00
parent 43a9a9b191
commit ffec4d7fc5
2 changed files with 13 additions and 1 deletions

View File

@@ -5,11 +5,20 @@ env:
matrix:
- ENV=test
- ENV=check
- ENV=test_nvim
install:
- |
if [ "$ENV" = "test" ]; then
python3.6 -m pip install pytest
fi
- |
# https://github.com/neovim/bot-ci#generated-builds
if [ "$ENV" = "test_nvim" ]; then
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
pip --version
pip install neovim
else
vim --version
fi
script:
- vim --version
- make --keep-going "$ENV"

View File

@@ -1,6 +1,9 @@
test:
pytest test_*.py
test_nvim:
VSPEC_VIM=nvim pytest test_*.py
build:
mkdir $@