UltiSnips/scripts/run_tests.sh
Holger Rapp 539c557680
Move travis testing into docker for better consistency. (#950)
This now only tests python2 on Vim 7.4, 8.0 and git. No Neovim (that has been broken for a long time anyways) and no longer any python3 testing. But hey, we have green tests again!
2018-04-01 00:56:34 +02:00

24 lines
472 B
Bash
Executable File

#!/usr/bin/env bash
set -e
PYTHON_CMD="$(which python)"
INTERFACE="--interface tmux"
VIM="$HOME/bin/vim"
PYTHON_VERSION=$($PYTHON_CMD -c 'import sys;print(sys.version.split()[0])')
echo "Using python from: $PYTHON_CMD Version: $PYTHON_VERSION"
echo "Using vim from:"
$VIM --version | head -n 3
set -x
tmux new -d -s vim
$PYTHON_CMD ./test_all.py \
-v \
--plugins \
--session vim \
--vim $VIM \
$INTERFACE \
--expected-python-version $PYTHON_VERSION