2016-07-31 20:44:31 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
|
|
|
py{26,27,33,34}-{cpp,python}
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop=true
|
|
|
|
passenv = CC
|
|
|
|
setenv =
|
|
|
|
cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
|
|
|
|
cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
|
|
|
|
cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
|
2018-05-05 00:30:16 +00:00
|
|
|
python: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
2016-07-31 20:44:31 +00:00
|
|
|
commands =
|
|
|
|
python setup.py -q build_py
|
|
|
|
python: python setup.py -q build
|
2018-05-05 00:30:16 +00:00
|
|
|
cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension
|
2016-07-31 20:44:31 +00:00
|
|
|
python: python setup.py -q test -q
|
|
|
|
cpp: python setup.py -q test -q --cpp_implementation
|
|
|
|
python: python setup.py -q test_conformance
|
|
|
|
cpp: python setup.py -q test_conformance --cpp_implementation
|
|
|
|
deps =
|
|
|
|
# Keep this list of dependencies in sync with setup.py.
|
|
|
|
six>=1.9
|
|
|
|
py26: ordereddict
|
|
|
|
py26: unittest2
|