2015-08-03 18:24:39 +00:00
|
|
|
[tox]
|
2017-04-07 18:46:57 +00:00
|
|
|
envlist =
|
2017-11-05 22:18:12 +00:00
|
|
|
py{27,34,35,36}-sphinx{13,14,15,16}
|
2017-04-07 19:01:17 +00:00
|
|
|
lint
|
|
|
|
docs
|
2015-08-03 18:24:39 +00:00
|
|
|
|
2017-06-29 19:27:46 +00:00
|
|
|
[travis]
|
|
|
|
python =
|
|
|
|
2.7: py27
|
|
|
|
3.4: py34
|
|
|
|
3.5: py35
|
|
|
|
3.6: py36
|
|
|
|
|
2015-08-03 18:24:39 +00:00
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
LANG=C
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
2016-11-02 23:29:28 +00:00
|
|
|
pytest
|
|
|
|
mock
|
2017-09-17 19:51:44 +00:00
|
|
|
sphinx13: Sphinx<1.4
|
2017-04-07 18:46:57 +00:00
|
|
|
sphinx14: Sphinx<1.5
|
|
|
|
sphinx15: Sphinx<1.6
|
2017-08-28 21:01:14 +00:00
|
|
|
sphinx16: Sphinx<1.7
|
2015-08-03 18:24:39 +00:00
|
|
|
commands =
|
2015-08-03 21:01:54 +00:00
|
|
|
py.test {posargs}
|
2015-08-03 18:24:39 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
2016-06-08 23:34:52 +00:00
|
|
|
deps =
|
2017-08-28 21:01:14 +00:00
|
|
|
Sphinx>=1.6,<=1.7
|
2016-06-08 23:34:52 +00:00
|
|
|
sphinx_rtd_theme
|
2015-08-03 18:24:39 +00:00
|
|
|
changedir = {toxinidir}/docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps =
|
|
|
|
prospector
|
|
|
|
commands =
|
|
|
|
prospector \
|
|
|
|
--profile-path={toxinidir} \
|
|
|
|
--profile=prospector \
|
2017-06-29 19:27:46 +00:00
|
|
|
--die-on-tool-error {posargs}
|