summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 1b72783a1eca0b53fba2ef7dcf351ec2dca408f3 (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
[tox]
envlist = py26, py27, pypy, py32, py33, docs

[testenv]
commands =
    nosetests -s tests.py
    sphinx-build -b doctest docs {envtmpdir}/html
    {envpython} -m doctest README.rst
    {envpython} -m doctest jsonschema.py
deps =
    mock
    {[testenv:py33]deps}

[testenv:docs]
basepython = python
changedir = docs
deps = sphinx
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:py26]
deps =
    {[testenv]deps}
    unittest2

[testenv:py33]
deps =
    isodate
    nose
    sphinx
    webcolors