blob: f89f34e1319073d2d110f4f0798ab36823477cb3 [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 = *