attrs/tox.ini

69 lines
1.5 KiB
INI
Raw Normal View History

2015-01-27 16:53:17 +00:00
[tox]
2017-08-20 05:58:08 +00:00
envlist = py27,py34,py35,py36,pypy,pypy3,flake8,manifest,docs,readme,changelog,coverage-report
2015-12-08 14:47:03 +00:00
2015-01-27 16:53:17 +00:00
[testenv]
# Prevent random setuptools/pip breakages like
# https://github.com/pypa/setuptools/issues/1042 from breaking our builds.
setenv =
VIRTUALENV_NO_DOWNLOAD=1
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:py36]
deps = -rdev-requirements.txt
commands = coverage run --parallel -m pytest {posargs}
2015-01-27 16:53:17 +00:00
[testenv:flake8]
basepython = python3.6
2015-12-08 14:47:03 +00:00
deps = flake8
commands = flake8 src tests setup.py conftest.py docs/conf.py
2015-01-27 16:53:17 +00:00
2015-01-27 21:41:24 +00:00
[testenv:docs]
basepython = python3.6
2015-01-27 21:41:24 +00:00
setenv =
PYTHONHASHSEED = 0
2017-05-16 16:23:12 +00:00
deps = -rdocs-requirements.txt
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.6
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.6
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
2017-08-20 05:58:08 +00:00
[testenv:changelog]
basepython = python3.6
deps = towncrier
skip_install = true
commands = towncrier --draft
2015-12-19 12:04:01 +00:00
2016-02-20 08:40:26 +00:00
# Uses default basepython otherwise reporting doesn't work on Travis where
# Python 3.6 is only available in 3.6 jobs.
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report