aboutsummaryrefslogtreecommitdiff
path: root/python/tox.ini
blob: d010075810ae57dd6d366bec113c43a0eb83fd80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[tox]
envlist =
    # cpp implementation on py34 is currently broken due to
    # changes introduced by http://bugs.python.org/issue22079.
    #py{26,27,33,34}-{cpp,python}
    py{26,27,33}-{cpp,python}, py34-{python}

[testenv]
usedevelop=true
setenv =
    cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
    cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
    cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
commands =
    python setup.py -q build_py
    python: python setup.py -q build
    cpp: python setup.py -q build --cpp_implementation
    python: python setup.py -q test -q
    cpp: python setup.py -q test -q --cpp_implementation
deps =
    # Keep this list of dependencies in sync with setup.py.
    six
    py26: ordereddict
    py26: unittest2