1[tox]
2envlist =
3    py{26,27,33,34}-{cpp,python}
4
5[testenv]
6usedevelop=true
7passenv = CC
8setenv =
9    cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
10    cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
11    cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
12commands =
13    python setup.py -q build_py
14    python: python setup.py -q build
15    cpp: python setup.py -q build --cpp_implementation --warnings_as_errors
16    python: python setup.py -q test -q
17    cpp: python setup.py -q test -q --cpp_implementation
18    python: python setup.py -q test_conformance
19    cpp: python setup.py -q test_conformance --cpp_implementation
20deps =
21    # Keep this list of dependencies in sync with setup.py.
22    six>=1.9
23    py26: ordereddict
24    py26: unittest2
25