blob: 66b74a32db00a2b9fd2325e1fa0731e2dbc437e6 [file] [log] [blame]
Masood Malekghassemi4352e872015-12-17 00:29:22 -08001# GRPC Python tox (test environment) settings
Masood Malekghassemi116982e2015-12-11 15:53:38 -08002[tox]
3skipsdist = true
Jan Tattermusch825471c2016-04-25 16:52:25 -07004envlist = py27,py34
Masood Malekghassemi116982e2015-12-11 15:53:38 -08005
6[testenv]
7setenv =
8 PYGRPC_ROOT = {toxinidir}/src/python/grpcio/
9commands =
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'
16deps =
17 -rrequirements.txt
18passenv = *
Masood Malekghassemiccc16102015-12-17 14:32:44 -080019
20[testenv:interop_client]
21commands =
22 {envpython} setup.py run_interop --client --args='{posargs}'
23
24[testenv:interop_server]
25commands =
26 {envpython} setup.py run_interop --server --args='{posargs}'