summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 17f33edf2dea5ea7bc4f0ef02659a3b2ba868b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
envlist = py27,py33,py34,py35,pypy,pypy3,coverage,docs

[testenv]
commands =
    python setup.py -q test -q
deps =
    python-gettext
    pytz
    zope.component
    zope.configuration
    zope.i18nmessageid
    zope.location
    zope.proxy
    zope.schema
    zope.security
    zope.testing
    zope.testrunner

[testenv:coverage]
basepython =
    python2.7
commands =
    coverage erase
    coverage run --source=src setup.py -q test -q
    coverage report --show-missing
    coverage xml
deps =
    {[testenv]deps}
    coverage

[testenv:docs]
basepython =
    python2.7
commands =
    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
deps =
    {[testenv]deps}
    Sphinx