diff --git a/.travis.yml b/.travis.yml index dad99fc4..f470b7fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,13 @@ jobs: - MAKE_TARGET=test - TEST_PROFILE=vim-profile-master.txt - name: Installed Vim with checks + language: python + python: + - "2.7" + - "3.4" env: - VIM_VERSION=installed + - VIMLPARSER_PYTHON_LIST='python2.7 python3.4' - MAKE_TARGET="clean_compiled check js/test py/test test/node_position/test_position.out" - TEST_PROFILE=vim-profile-installed.txt @@ -38,6 +43,7 @@ script: - uname -a - which -a vim - vim --cmd version --cmd quit + - if [ "$VIM_VERSION" = 'installed' ]; then python --version; fi - make --keep-going $MAKE_TARGET after_success: diff --git a/Makefile b/Makefile index 5e181069..75a9b136 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,9 @@ js/test: js/vimlparser.js test/run_command.sh node js/vimlparser.js py/test: py/vimlparser.py - test/run_command.sh python py/vimlparser.py + for python in $(VIMLPARSER_PYTHON_LIST); do \ + test/run_command.sh $$python py/vimlparser.py; \ + done test/node_position/test_position.out: test/node_position/test_position.vim test/node_position/test_position.ok vim -Nu test/vimrc -S test/node_position/test_position.vim