2015-01-27 16:53:17 +00:00
|
|
|
[tox]
|
2017-01-21 16:11:45 +00:00
|
|
|
envlist = py27,py34,py35,py36,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
|
2016-09-12 05:54:22 +00:00
|
|
|
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}
|
2016-09-05 12:50:08 +00:00
|
|
|
|
|
|
|
|
2017-01-21 16:11:45 +00:00
|
|
|
[testenv:py36]
|
2016-09-05 12:50:08 +00:00
|
|
|
deps = -rdev-requirements.txt
|
2016-09-12 05:54:22 +00:00
|
|
|
commands = coverage run --parallel -m pytest {posargs}
|
2016-09-05 12:50:08 +00:00
|
|
|
|
2015-01-27 16:53:17 +00:00
|
|
|
|
|
|
|
[testenv:flake8]
|
2017-03-04 06:49:57 +00:00
|
|
|
basepython = python3.6
|
2015-12-08 14:47:03 +00:00
|
|
|
deps = flake8
|
2017-03-04 06:49:57 +00:00
|
|
|
commands = flake8 src tests setup.py conftest.py docs/conf.py
|
2015-01-27 16:53:17 +00:00
|
|
|
|
2015-02-20 08:44:50 +00:00
|
|
|
|
2015-01-27 21:41:24 +00:00
|
|
|
[testenv:docs]
|
2017-03-04 06:49:57 +00:00
|
|
|
basepython = python3.6
|
2015-01-27 21:41:24 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONHASHSEED = 0
|
|
|
|
deps =
|
|
|
|
sphinx
|
2016-05-16 20:55:55 +00:00
|
|
|
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-02-20 08:44:50 +00:00
|
|
|
|
2015-01-27 16:53:17 +00:00
|
|
|
[testenv:manifest]
|
2017-03-04 06:49:57 +00:00
|
|
|
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-10-16 13:09:28 +00:00
|
|
|
|
2015-12-19 12:04:01 +00:00
|
|
|
[testenv:readme]
|
2017-03-04 06:49:57 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2016-02-20 08:40:26 +00:00
|
|
|
# Uses default basepython otherwise reporting doesn't work on Travis where
|
2017-03-04 06:49:57 +00:00
|
|
|
# Python 3.6 is only available in 3.6 jobs.
|
2015-10-16 13:09:28 +00:00
|
|
|
[testenv:coverage-report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
coverage report
|