Commit Graph

13 Commits

Author SHA1 Message Date
Holger Rapp
306f0ace5f Add a testing interface that works for Neovim.
- Remove support for python 3.2 to reduce number of test cases and because
  it actually fails with Neovim. It is not a supported version anyways.
- Due to Neovim not handling fast typing through the console properly
  (https://github.com/neovim/neovim/issues/2454), the typing is actually
  simulated through the Python client. We need to differentiate now if a
  keystroke is meant for the terminal or for the Vim session. Using
  neovim.input() introduces additional chances for races since inputs
  are not buffered but processed right away. This results in more
  retries for some tests.
- Neovim needs more parameters and configuration passed in through the
  test script. Added command line arguments for these.
- Skip an extra test under Neovim due to
  https://github.com/neovim/python-client/issues/128.
2015-07-14 21:58:30 +02:00
Holger Rapp
4f65a76542 Fix testing and test against more scenarios.
Before this, we only ever ran against system python preinstalled on
travis (i.e. 2.7 and 3.2). This change makes sure that Vim is always
build and run against the correct python version in the virtual env.
Also adds mercurial (HEAD) Vim as a testing target.
This patch took me forever to get right. At least 2 months and ~200
travis runs of trial and error - there is just too much finicky going on
with the many virtual envs on travis, Vims strange build system that
does not use python-config and LD_LIBRARY_PATH loading. En plus, the
debugging insights one can glance from travis runs are rather limited.

Detailed changes:
- Uses less sudo and only outside of scripts.
- Build correct version of Vim against correct version of Python. This
  needs some LD_LIBRARY_PATH magic to make sure that Vim finds the
  correct Python libraries at runtime.
- Removes dirty hack that overwrote /usr/bin/vim with the correct Vim
  version to run. The test_all.py script now takes the Vim binary as a
  parameter.
2015-07-03 21:52:50 +02:00
Holger Rapp
4ab4c1df4b Do not use --interface anymore. 2015-04-22 10:01:58 +02:00
Holger Rapp
99eede1bf6 Started to test py2 and py3 on travis now.
I also learned that Vim 7.3 does not seem to be working at all anymore.
Fixes a bug that only happens with python3.
2015-04-18 17:15:05 +02:00
Holger Rapp
cf23624c04 A usable travis configuration. 2015-02-14 15:31:34 +01:00
Holger Rapp
e112526550 More travis. 2015-02-14 15:26:10 +01:00
Holger Rapp
ad2c6d35ca Add travis badge and try running on python3 too. 2015-02-14 15:20:55 +01:00
Holger Rapp
db00408a11 More travis. 2015-02-14 15:07:41 +01:00
Holger Rapp
eb9adc50e3 More travis. 2015-02-14 15:05:04 +01:00
Holger Rapp
f47ec08ef2 More travis. 2015-02-14 15:02:24 +01:00
Holger Rapp
348dd4346d More travis. 2015-02-14 14:54:47 +01:00
Holger Rapp
c1aec63bd2 Typo in travis script. 2015-02-14 14:50:20 +01:00
Holger Rapp
35cdaba3ad A travis script. 2015-02-14 14:38:17 +01:00