blob: a655935219f9cd537132d4a72781b3dc5ca3c775 [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
4envlist = py27
5
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}'