summaryrefslogtreecommitdiff
path: root/tox.ini
blob: b0b5a7392d906a1e5d7cb493df263a3cf9fab0c9 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist = py26, py27, pypy, py32, py33, docs

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

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

[testenv:py26]
commands =
    nosetests -s tests.py
    {envpython} -m doctest README.rst
    {envpython} -m doctest jsonschema.py
deps =
    {[testenv:notpy33]deps}
    {[testenv:all]deps}
    argparse
    unittest2

[testenv:pypy]
commands =
    nosetests -s tests.py
    {envpython} -m doctest README.rst
    {envpython} -m doctest jsonschema.py

[testenv:py33]
deps =
    {[testenv:all]deps}
    {[testenv:notpy26]deps}

[testenv:notpy33]
deps =
    mock

[testenv:notpy26]
deps =
    rfc3987

[testenv:all]
deps =
    isodate
    lxml
    nose
    sphinx
    webcolors