2015-01-13 20:58:31 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
2020-12-04 21:16:47 +00:00
|
|
|
py{27,33,34,35,36,37,38,39}-{cpp,python}
|
2015-01-13 20:58:31 +00:00
|
|
|
|
|
|
|
[testenv]
|
2015-08-21 00:49:45 +00:00
|
|
|
usedevelop=true
|
2019-02-21 03:28:50 +00:00
|
|
|
passenv =
|
2018-07-12 23:49:26 +00:00
|
|
|
CC KOKORO_BUILD_ID KOKORO_BUILD_NUMBER
|
2015-01-13 20:58:31 +00:00
|
|
|
setenv =
|
2015-08-20 22:19:56 +00:00
|
|
|
cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
|
2015-08-21 23:28:18 +00:00
|
|
|
cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
|
2015-08-20 22:19:56 +00:00
|
|
|
cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
|
2017-07-17 21:34:54 +00:00
|
|
|
python: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
2015-01-13 20:58:31 +00:00
|
|
|
commands =
|
2015-08-20 19:29:10 +00:00
|
|
|
python setup.py -q build_py
|
2015-08-20 22:19:56 +00:00
|
|
|
python: python setup.py -q build
|
2020-09-30 22:56:17 +00:00
|
|
|
# --warnings_as_errors disabled until we update the Python C extension. See:
|
|
|
|
# https://github.com/protocolbuffers/protobuf/issues/7930
|
|
|
|
# cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension
|
|
|
|
cpp: python setup.py -q build --cpp_implementation --compile_static_extension
|
2015-08-20 22:19:56 +00:00
|
|
|
python: python setup.py -q test -q
|
|
|
|
cpp: python setup.py -q test -q --cpp_implementation
|
2015-12-31 00:03:49 +00:00
|
|
|
python: python setup.py -q test_conformance
|
|
|
|
cpp: python setup.py -q test_conformance --cpp_implementation
|
2015-01-13 20:58:31 +00:00
|
|
|
deps =
|
2015-08-21 00:49:45 +00:00
|
|
|
# Keep this list of dependencies in sync with setup.py.
|
2015-12-29 22:36:46 +00:00
|
|
|
six>=1.9
|
2015-08-20 22:19:56 +00:00
|
|
|
py26: ordereddict
|
|
|
|
py26: unittest2
|