diff options
Diffstat (limited to 'python/tox.ini')
-rw-r--r-- | python/tox.ini | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/python/tox.ini b/python/tox.ini new file mode 100644 index 00000000..9a934d0a --- /dev/null +++ b/python/tox.ini @@ -0,0 +1,24 @@ +[tox] +envlist = + # Py3 tests currently fail because of text handling issues, + # So only test py26/py27 for now. + #py{26,27,33,34}-{cpp,python} + py{26,27}-{cpp,python} + +[testenv] +usedevelop=true +setenv = + cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs + cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs + cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp +commands = + python setup.py -q build_py + python: python setup.py -q build + cpp: python setup.py -q build --cpp_implementation + python: python setup.py -q test -q + cpp: python setup.py -q test -q --cpp_implementation +deps = + # Keep this list of dependencies in sync with setup.py. + six + py26: ordereddict + py26: unittest2 |