1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
[tox]
envlist = py27,py33,py34,pypy,flake8,coverage
[flake8]
max-line-length = 120
[testenv]
skip_install = true
setenv =
COVERAGE_FILE={toxinidir}/.coverage.{envname}
commands =
pip install -e .[test]
coverage run {envbindir}/py.test []
deps =
pytest
coverage<3.99
[testenv:py27]
commands =
pip install -e .[test]
coverage run {envbindir}/py.test tests/ docs/
[testenv:py33]
commands =
pip install -e .[test]
coverage run {envbindir}/py.test tests/ docs/ tests_python3/
[testenv:py34]
commands =
pip install -e .[test]
coverage run {envbindir}/py.test tests/ docs/ tests_python3/
[testenv:pypy]
commands =
pip install -e .[test]
coverage run {envbindir}/py.test tests/ docs/
[testenv:flake8]
basepython = python3.4
commands =
flake8 panoramisk examples
deps =
flake8
[testenv:coverage]
basepython = python3.4
deps =
coverage
setenv =
COVERAGE_FILE={toxinidir}/.coverage
commands =
coverage erase
coverage combine
coverage report --show-missing
|