blob: 38a81b4fea864108865dfde1d339ea9dbe49f995 [file] [log] [blame]
Tres Seaverf1eae1a2015-01-13 15:58:31 -05001[tox]
2envlist =
Colin Cross3ed2fc52019-08-13 18:26:41 -07003 py{27,33,34,35,36}-{cpp,python}
Tres Seaverf1eae1a2015-01-13 15:58:31 -05004
5[testenv]
Dan O'Reilly3791c802015-08-20 20:49:45 -04006usedevelop=true
Josh Habermanc3ca9202015-10-28 16:49:55 -07007passenv = CC
Tres Seaverf1eae1a2015-01-13 15:58:31 -05008setenv =
Dan O'Reilly5de2a812015-08-20 18:19:56 -04009 cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
Dan O'Reilly46969b92015-08-21 19:28:18 -040010 cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
Dan O'Reilly5de2a812015-08-20 18:19:56 -040011 cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
Colin Cross3ed2fc52019-08-13 18:26:41 -070012 python: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
Tres Seaverf1eae1a2015-01-13 15:58:31 -050013commands =
Dan O'Reilly416f0012015-08-20 15:29:10 -040014 python setup.py -q build_py
Dan O'Reilly5de2a812015-08-20 18:19:56 -040015 python: python setup.py -q build
Colin Cross3ed2fc52019-08-13 18:26:41 -070016 cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension
Dan O'Reilly5de2a812015-08-20 18:19:56 -040017 python: python setup.py -q test -q
18 cpp: python setup.py -q test -q --cpp_implementation
Josh Habermane891c292015-12-30 16:03:49 -080019 python: python setup.py -q test_conformance
20 cpp: python setup.py -q test_conformance --cpp_implementation
Tres Seaverf1eae1a2015-01-13 15:58:31 -050021deps =
Dan O'Reilly3791c802015-08-20 20:49:45 -040022 # Keep this list of dependencies in sync with setup.py.
Feng Xiao283c40c2015-12-29 14:36:46 -080023 six>=1.9
Dan O'Reilly5de2a812015-08-20 18:19:56 -040024 py26: ordereddict
25 py26: unittest2