Masood Malekghassemi | 4352e87 | 2015-12-17 00:29:22 -0800 | [diff] [blame] | 1 | # GRPC Python tox (test environment) settings |
Masood Malekghassemi | 116982e | 2015-12-11 15:53:38 -0800 | [diff] [blame] | 2 | [tox] |
| 3 | skipsdist = true |
| 4 | envlist = py27 |
| 5 | |
| 6 | [testenv] |
| 7 | setenv = |
| 8 | PYGRPC_ROOT = {toxinidir}/src/python/grpcio/ |
| 9 | commands = |
| 10 | {envpython} setup.py build_py |
| 11 | {envpython} setup.py test |
| 12 | {envbindir}/coverage combine |
| 13 | # TODO(atash): we currently ignore cygrpc.pyx due to an insufficiency in Cython's coverage plug-in. Discussion is ongoing. |
| 14 | {envbindir}/coverage html --include='{env:PYGRPC_ROOT}/grpc/*' --omit='{env:PYGRPC_ROOT}/grpc/framework/alpha/*','{env:PYGRPC_ROOT}/grpc/early_adopter/*','{env:PYGRPC_ROOT}/grpc/framework/base/*','{env:PYGRPC_ROOT}/grpc/framework/face/*','{env:PYGRPC_ROOT}/grpc/_adapter/fore.py','{env:PYGRPC_ROOT}/grpc/_adapter/rear.py','{env:PYGRPC_ROOT}/grpc/_cython/cygrpc.pyx' |
| 15 | {envbindir}/coverage report --include='{env:PYGRPC_ROOT}/grpc/*' --omit='{env:PYGRPC_ROOT}/grpc/framework/alpha/*','{env:PYGRPC_ROOT}/grpc/early_adopter/*','{env:PYGRPC_ROOT}/grpc/framework/base/*','{env:PYGRPC_ROOT}/grpc/framework/face/*','{env:PYGRPC_ROOT}/grpc/_adapter/fore.py','{env:PYGRPC_ROOT}/grpc/_adapter/rear.py','{env:PYGRPC_ROOT}/grpc/_cython/cygrpc.pyx' |
| 16 | deps = |
| 17 | -rrequirements.txt |
| 18 | passenv = * |
Masood Malekghassemi | ccc1610 | 2015-12-17 14:32:44 -0800 | [diff] [blame] | 19 | |
| 20 | [testenv:interop_client] |
| 21 | commands = |
| 22 | {envpython} setup.py run_interop --client --args='{posargs}' |
| 23 | |
| 24 | [testenv:interop_server] |
| 25 | commands = |
| 26 | {envpython} setup.py run_interop --server --args='{posargs}' |