attrs/tox.ini

61 lines
1.2 KiB
INI
Raw Normal View History

2015-01-27 16:53:17 +00:00
[tox]
envlist = py27,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]
2015-12-19 12:04:01 +00:00
deps = -rdev-requirements.txt
commands = python -m pytest {posargs}
[testenv:py27]
deps = -rdev-requirements.txt
2015-12-08 14:47:03 +00:00
commands = coverage run --parallel -m pytest {posargs}
[testenv:py35]
deps = -rdev-requirements.txt
commands = coverage run --parallel -m pytest {posargs}
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 = python3.5
2015-01-27 21:41:24 +00:00
setenv =
PYTHONHASHSEED = 0
deps =
sphinx
zope.interface
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]
basepython = python3.5
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]
basepython = python3.5
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
2016-02-20 08:40:26 +00:00
# Uses default basepython otherwise reporting doesn't work on Travis where
# Python 3.5 is only available in 3.5 jobs.
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report