mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Like the recently added 'docs' target, this is easier than creating a virtualenv, installing deps and running make. Signed-off-by: Stephen Finucane <stephen@that.guru>
67 lines
1.0 KiB
INI
67 lines
1.0 KiB
INI
[tox]
|
|
envlist=flake8,py27,py34,py35,py36,pypy,du13,du12,du11
|
|
|
|
[testenv]
|
|
deps=
|
|
six
|
|
pytest
|
|
sqlalchemy
|
|
whoosh
|
|
html5lib
|
|
mock
|
|
enum34
|
|
typing
|
|
setenv =
|
|
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
|
PYTHONDONTWRITEBYTECODE = true
|
|
commands=
|
|
{envpython} -Wall tests/run.py --ignore tests/py35 {posargs}
|
|
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
|
|
|
[testenv:pypy]
|
|
deps=
|
|
simplejson
|
|
{[testenv]deps}
|
|
|
|
[testenv:du11]
|
|
deps=
|
|
docutils==0.11
|
|
{[testenv]deps}
|
|
|
|
[testenv:du12]
|
|
deps=
|
|
docutils==0.12
|
|
{[testenv]deps}
|
|
|
|
[testenv:du13]
|
|
deps=
|
|
docutils==0.13.1
|
|
{[testenv]deps}
|
|
|
|
[testenv:flake8]
|
|
deps=flake8
|
|
commands=flake8
|
|
|
|
[testenv:py27]
|
|
deps=
|
|
{[testenv]deps}
|
|
|
|
[testenv:py35]
|
|
deps=
|
|
mypy
|
|
typed_ast
|
|
{[testenv]deps}
|
|
commands=
|
|
{envpython} -Wall tests/run.py {posargs}
|
|
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
|
|
|
[testenv:mypy]
|
|
deps=
|
|
mypy
|
|
commands=
|
|
mypy sphinx/
|
|
|
|
[testenv:docs]
|
|
commands=
|
|
python setup.py build_sphinx
|