run coverage over all environments
meejah
9 years ago
4 | 4 |
test:
|
5 | 5 |
tox
|
6 | 6 |
|
|
7 |
coverage:
|
|
8 |
-rm test/.coverage
|
|
9 |
# can we exclude just the flake8 environment?
|
|
10 |
tox -e py27-twisted,pypy-twisted,py34-twisted,py34-asyncio,py27-asyncio,pypy-asyncio
|
|
11 |
cd test && coverage combine
|
|
12 |
cd test && coverage html
|
|
13 |
cd test && coverage report --show-missing
|
|
14 |
|
7 | 15 |
docs:
|
8 | 16 |
cd doc && make html
|
9 | 17 |
|
10 | 10 |
six
|
11 | 11 |
mock
|
12 | 12 |
pytest
|
13 | |
pytest-cov
|
|
13 |
coverage
|
14 | 14 |
py{26,27,34,py}-twisted: twisted
|
15 | 15 |
py{26,27,34,py}-twisted: pytest-twisted
|
16 | 16 |
py33-asyncio: asyncio
|
|
18 | 18 |
py26-asyncio: trollius
|
19 | 19 |
pypy-asyncio: trollius
|
20 | 20 |
changedir=test
|
|
21 |
# this is so that our combined coverage files all have the same paths
|
|
22 |
# for the txaio code; thanks ionelmc on #python
|
|
23 |
usedevelop=true
|
21 | 24 |
commands =
|
22 | |
py.test -s --basetemp={envtmpdir} --cov txaio --cov-report term-missing
|
23 | |
# coverage report --show-missing
|
24 | |
# coverage html
|
|
25 |
coverage run -p --source=txaio {envbindir}/py.test -s --basetemp={envtmpdir}
|
25 | 26 |
|
26 | 27 |
[testenv:flake8]
|
27 | 28 |
deps =
|