tox.ini 1.29 KB
Newer Older
Timothée Peignier committed
1
[tox]
2 3 4
envlist =
    py26-1.4.X, py27-1.4.X, pypy-1.4.X,
    py26, py27, pypy, py33, docs
Timothée Peignier committed
5 6

[testenv]
Timothée Peignier committed
7
downloadcache = {toxworkdir}/_download/
Timothée Peignier committed
8
setenv =
Timothée Peignier committed
9
    DJANGO_SETTINGS_MODULE = tests.settings
10
    PYTHONPATH = {toxinidir}
Timothée Peignier committed
11
commands =
Timothée Peignier committed
12 13
    {envbindir}/django-admin.py test {posargs:tests}

14
[testenv:py26-1.4.X]
Timothée Peignier committed
15 16
basepython = python2.6
deps =
17
    Django==1.4.2
Timothée Peignier committed
18 19
    mock
    unittest2
Chris Reeves committed
20
    jinja2
Timothée Peignier committed
21

22
[testenv:py27-1.4.X]
Timothée Peignier committed
23 24
basepython = python2.7
deps =
25
    Django==1.4.2
Timothée Peignier committed
26 27
    mock
    unittest2
Chris Reeves committed
28
    jinja2
Timothée Peignier committed
29

30 31
[testenv:pypy-1.4.X]
basepython = pypy
Timothée Peignier committed
32
deps =
33
    Django==1.4.2
Timothée Peignier committed
34 35
    mock
    unittest2
Chris Reeves committed
36
    jinja2
Timothée Peignier committed
37 38 39 40

[testenv:py26]
basepython = python2.6
deps =
41
    git+git://github.com/django/django.git@stable/1.5.x#egg=Django
Timothée Peignier committed
42 43
    mock
    unittest2
Chris Reeves committed
44
    jinja2
Timothée Peignier committed
45 46 47 48

[testenv:py27]
basepython = python2.7
deps =
49
    git+git://github.com/django/django.git@stable/1.5.x#egg=Django
Timothée Peignier committed
50 51
    mock
    unittest2
Chris Reeves committed
52
    jinja2
Timothée Peignier committed
53 54 55 56

[testenv:pypy]
basepython = pypy
deps =
57
    git+git://github.com/django/django.git@stable/1.5.x#egg=Django
Timothée Peignier committed
58 59
    mock
    unittest2
Chris Reeves committed
60
    jinja2
Timothée Peignier committed
61

62 63 64 65
[testenv:py33]
basepython = python3.3
deps =
    jinja2
66
    git+git://github.com/django/django.git@stable/1.5.x#egg=Django
67

Timothée Peignier committed
68
[testenv:docs]
Timothée Peignier committed
69
basepython = python2.7
Timothée Peignier committed
70
changedir = docs
Timothée Peignier committed
71
deps = sphinx
Timothée Peignier committed
72
commands =
73
    {envbindir}/sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html