Skip to content

Commit

Permalink
Collect coverage info from all configurations on tox run
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed May 8, 2015
1 parent 42bd165 commit 0d983e9
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,56 @@
[tox]
envlist = {py33,py34}-{debug,release}-{cython,pure}, flake8

envlist = check, {py33,py34}-{debug,release}-{cython,pure}, reportcov

[testenv]

deps =
nose
coverage
gunicorn
chardet
cython: cython

commands =
nosetests {posargs}
coverage run -m nose {posargs}
mv .coverage .coverage.{envname}

setenv =
debug: PYTHONASYNCIODEBUG = 1
release: PYTHONASYNCIODEBUG = 0
pure: AIOHTTP+NO_EXTENSIONS=1
cython: AIOHTTP+NO_EXTENSIONS=0

basepython:
py33: python3.3
py34: python3.4

[testenv:flake8]
whitelist_externals =
coverage
mv

[testenv:check]

deps =
wheel
flake8
coverage

commands =
flake8 aiohttp examples tests
python setup.py check -rm
coverage erase

basepython:
python3

[testenv:reportcov]

commands =
coverage combine
coverage report
coverage html
echo "open file://{toxinidir}/coverage/index.html"

basepython:
python3
python3

0 comments on commit 0d983e9

Please sign in to comment.