Skip to content

Commit ab345bb

Browse files
committed
Add tox and travis config
1 parent 00201c9 commit ab345bb

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
python: 2.7
3+
env:
4+
- TOX_ENV=py33-1.7.x
5+
- TOX_ENV=py33-1.6.x
6+
- TOX_ENV=py33-1.5.x
7+
- TOX_ENV=py27-1.7.x
8+
- TOX_ENV=py27-1.6.x
9+
- TOX_ENV=py27-1.5.x
10+
- TOX_ENV=py27-1.4.x
11+
- TOX_ENV=py26-1.5.x
12+
install:
13+
- pip install tox
14+
script:
15+
- tox -e $TOX_ENV
16+

tox.ini

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
[testenv]
2+
skipsdist = True
3+
usedevelop = True
4+
commands =
5+
pip install -e {toxinidir}
6+
pip install -e {toxinidir}[tests]
7+
8+
deps15 =
9+
https://github.com/django/django/archive/stable/1.5.x.zip#egg=django
10+
deps16 =
11+
https://github.com/django/django/archive/stable/1.6.x.zip#egg=django
12+
deps17 =
13+
https://github.com/django/django/archive/master.zip#egg=django
14+
15+
[testenv:py26-1.5.x]
16+
basepython = python2.6
17+
deps =
18+
{[testenv]deps15}
19+
20+
[testenv:py26-1.6.x]
21+
basepython = python2.6
22+
deps =
23+
{[testenv]deps16}
24+
25+
[testenv:py27-1.5.x]
26+
basepython = python2.7
27+
deps =
28+
{[testenv]deps15}
29+
30+
[testenv:py27-1.6.x]
31+
basepython = python2.7
32+
deps =
33+
{[testenv]deps16}
34+
35+
[testenv:py27-1.7.x]
36+
basepython = python2.7
37+
deps =
38+
{[testenv]deps17}
39+
40+
[testenv:py33-1.5.x]
41+
basepython = python3.3
42+
deps =
43+
{[testenv]deps15}
44+
45+
[testenv:py33-1.6.x]
46+
basepython = python3.3
47+
deps =
48+
{[testenv]deps16}
49+
50+
[testenv:py33-1.7.x]
51+
basepython = python3.3
52+
deps =
53+
{[testenv]deps17}
54+
55+
[testenv:pypy-1.5.x]
56+
basepython = pypy
57+
deps =
58+
{[testenv]deps17}
59+
60+
61+
[testenv:pypy-1.6.x]
62+
basepython = pypy
63+
deps =
64+
{[testenv]deps17}
65+
66+
67+
[testenv:pypy-1.7.x]
68+
basepython = pypy
69+
deps =
70+
{[testenv]deps17}
71+
72+
[docs]
73+
commands =
74+
pip install -e {toxinidir}
75+
pip install -e {toxinidir}[docs]
76+
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
77+
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
78+
sphinx-build -W -b linkcheck docs docs/_build/html

0 commit comments

Comments
 (0)