tox.ini 828 Bytes
Newer Older
1 2
[tox]
envlist =
Jie Luo's avatar
Jie Luo committed
3
    py{27,33,34,35,36}-{cpp,python}
4 5

[testenv]
Dan O'Reilly's avatar
Dan O'Reilly committed
6
usedevelop=true
7
passenv = CC
8
setenv =
9
    cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
10
    cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
11
    cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
12
    python: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
13
commands =
14
    python setup.py -q build_py
15
    python: python setup.py -q build
16
    cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension
17 18
    python: python setup.py -q test -q
    cpp: python setup.py -q test -q --cpp_implementation
19 20
    python: python setup.py -q test_conformance
    cpp: python setup.py -q test_conformance --cpp_implementation
21
deps =
Dan O'Reilly's avatar
Dan O'Reilly committed
22
    # Keep this list of dependencies in sync with setup.py.
23
    six>=1.9
24 25
    py26: ordereddict
    py26: unittest2