blob: cf8d5401685110b5652e42ed6eee73e772855adf [file] [log] [blame]
Tres Seaverf1eae1a2015-01-13 15:58:31 -05001[tox]
2envlist =
Jie Luo2850a982015-10-09 17:07:03 -07003 py{26,27,33,34}-{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
Tres Seaverf1eae1a2015-01-13 15:58:31 -050012commands =
Dan O'Reilly416f0012015-08-20 15:29:10 -040013 python setup.py -q build_py
Dan O'Reilly5de2a812015-08-20 18:19:56 -040014 python: python setup.py -q build
Josh Haberman00700b72015-10-06 14:13:09 -070015 cpp: python setup.py -q build --cpp_implementation --warnings_as_errors
Dan O'Reilly5de2a812015-08-20 18:19:56 -040016 python: python setup.py -q test -q
17 cpp: python setup.py -q test -q --cpp_implementation
Josh Habermane891c292015-12-30 16:03:49 -080018 python: python setup.py -q test_conformance
19 cpp: python setup.py -q test_conformance --cpp_implementation
Tres Seaverf1eae1a2015-01-13 15:58:31 -050020deps =
Dan O'Reilly3791c802015-08-20 20:49:45 -040021 # Keep this list of dependencies in sync with setup.py.
Feng Xiao283c40c2015-12-29 14:36:46 -080022 six>=1.9
Dan O'Reilly5de2a812015-08-20 18:19:56 -040023 py26: ordereddict
24 py26: unittest2