2015-10-19 11:41:10 -07:00
|
|
|
[tox]
|
2017-02-17 01:04:04 -08:00
|
|
|
envlist =
|
2018-10-12 10:54:50 +02:00
|
|
|
py{27,35,36}-sphinx{16,17,18},
|
2018-10-12 11:30:22 +02:00
|
|
|
# Workaround https://github.com/tox-dev/tox/issues/706
|
2018-10-12 11:42:45 +02:00
|
|
|
lint-sphinx18
|
|
|
|
docs-sphinx18
|
2017-02-17 01:04:04 -08:00
|
|
|
|
|
|
|
[tox:travis]
|
2018-10-12 11:30:22 +02:00
|
|
|
2.7 = py27-sphinx{16,17,18}, docs-sphinx16, lint-sphinx16
|
|
|
|
3.5 = py35-sphinx{16,17,18}
|
|
|
|
3.6 = py36-sphinx{16,17,18}
|
2015-10-19 11:41:10 -07:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
LANG=C
|
2017-02-17 01:04:04 -08:00
|
|
|
deps =
|
|
|
|
.
|
|
|
|
pytest
|
2018-10-12 10:54:50 +02:00
|
|
|
sphinx16: Sphinx < 1.7
|
|
|
|
sphinx17: Sphinx < 1.8
|
|
|
|
sphinx18: Sphinx < 1.9
|
2015-10-19 11:41:10 -07:00
|
|
|
commands =
|
|
|
|
py.test {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2017-02-17 01:04:04 -08:00
|
|
|
deps =
|
2016-06-10 21:08:31 -05:00
|
|
|
{[testenv]deps}
|
|
|
|
sphinx_rtd_theme
|
2015-10-19 11:41:10 -07:00
|
|
|
changedir = {toxinidir}/docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
prospector
|
|
|
|
commands =
|
|
|
|
prospector \
|
|
|
|
--profile-path={toxinidir} \
|
|
|
|
--profile=prospector \
|
|
|
|
--die-on-tool-error
|