attrs/tox.ini

54 lines
1.0 KiB
INI
Raw Normal View History

2015-01-27 16:53:17 +00:00
[tox]
2015-12-19 12:04:01 +00:00
envlist = coverage-clean,py26,py27,py33,py34,py35,pypy,flake8,manifest,docs,readme,coverage-report
2015-12-08 14:47:03 +00:00
2015-01-27 16:53:17 +00:00
[testenv]
passenv = TERM # ensure colors
2015-12-19 12:04:01 +00:00
deps = -rdev-requirements.txt
2015-12-08 14:47:03 +00:00
commands = coverage run --parallel -m pytest {posargs}
2015-01-27 16:53:17 +00:00
2015-01-27 16:53:17 +00:00
[testenv:flake8]
2015-12-08 14:47:03 +00:00
basepython = python3.5
deps = flake8
commands = flake8 src tests setup.py
2015-01-27 16:53:17 +00:00
2015-01-27 21:41:24 +00:00
[testenv:docs]
basepython = python2.7
setenv =
PYTHONHASHSEED = 0
deps =
sphinx
2015-12-19 12:04:01 +00:00
zope.interface # for doctests
2015-01-27 21:41:24 +00:00
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
2015-12-08 15:00:06 +00:00
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
2015-01-29 22:16:07 +00:00
python -m doctest README.rst
2015-01-27 16:53:17 +00:00
2015-01-27 16:53:17 +00:00
[testenv:manifest]
2015-12-08 14:47:03 +00:00
deps = check-manifest
2015-12-08 15:00:06 +00:00
skip_install = true
2015-12-08 14:47:03 +00:00
commands = check-manifest
2015-12-19 12:04:01 +00:00
[testenv:readme]
2016-01-06 13:03:55 +00:00
deps = readme_renderer
2015-12-19 12:04:01 +00:00
skip_install = true
commands = python setup.py check -r -s
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
2015-12-08 14:47:03 +00:00
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report