tox.ini 579 Bytes
Newer Older
1
[tox]
2
envlist =
3
    py27,py34,py35,py36,py37,pypy,pypy3,docs
4 5

[testenv]
6 7 8 9 10
usedevelop = true
commands =
    coverage run -m zope.testrunner --test-path=src []
    coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
    coverage report -i --fail-under=100
11
deps =
12
    .[test,docs]
13
    coverage
14 15
setenv =
   COVERAGE_FILE=.coverage.{envname}
16 17 18

[testenv:docs]
basepython =
19 20
    python2.7
commands =
21 22
    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest