Skip to content

Commit 0e9c295

Browse files
committed
Merge pull request #133 from treyhunner/cleanup-test-matrix
Cleanup test matrix
2 parents a618fee + 5cd0b9e commit 0e9c295

File tree

4 files changed

+26
-135
lines changed

4 files changed

+26
-135
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ python:
77
- 3.3
88

99
env:
10-
- DJANGO=Django==1.4.13
11-
- DJANGO=Django==1.5.8
12-
- DJANGO=Django==1.6.5
10+
- DJANGO="Django>=1.4,<1.5"
11+
- DJANGO="Django>=1.6,<1.7"
1312
- DJANGO="Django>=1.7,<1.8"
1413

1514
install:
16-
- pip install coverage coveralls $DJANGO --use-mirrors
15+
- pip install -U coverage coveralls $DJANGO
16+
- python -c 'from __future__ import print_function; import django; print("Django " + django.get_version())'
1717

1818
script: coverage run -a setup.py test
1919

2020
matrix:
2121
exclude:
2222
- python: 2.6
23-
env: DJANGO=Django==1.6.5
23+
env: DJANGO="Django>=1.6,<1.7"
2424
- python: 2.6
2525
env: DJANGO="Django>=1.7,<1.8"
2626
- python: 3.2
27-
env: DJANGO=Django==1.4.13
27+
env: DJANGO="Django>=1.4,<1.5"
2828
- python: 3.3
29-
env: DJANGO=Django==1.4.13
29+
env: DJANGO="Django>=1.4,<1.5"
3030

3131
include:
3232
- python: 3.4

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ clean-pyc:
1414
find . -name '*~' -exec rm -f {} +
1515

1616
init:
17-
pip install tox coverage Sphinx
17+
pip install tox>=1.8 coverage Sphinx
1818

1919
test:
2020
coverage erase

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ django-simple-history
1212

1313
django-simple-history stores Django model state on every create/update/delete.
1414

15-
This app requires Django 1.4.13 or greater and Python 2.6 or greater.
15+
This app requires Django 1.4 or greater and Python 2.6 or greater.
1616

1717
Getting Help
1818
------------

tox.ini

Lines changed: 17 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,36 @@
11
[tox]
22
envlist =
3-
py26-1.4, py26-1.5, py26-1.6,
4-
py27-1.4, py27-1.5, py27-1.6, py27-1.7, py27-trunk,
5-
py32-1.5, py32-1.6, py32-1.7, py32-trunk,
6-
py33-1.5, py33-1.6, py33-1.7, py33-trunk,
7-
py34-1.7, py34-trunk,
3+
py{26,27}-django14,
4+
py{26,27,32,33}-django16,
5+
py{27,32,33,34}-django17,
6+
py{27,32,33,34}-djangotrunk,
87
docs, flake8
98

109

11-
[testenv]
12-
commands = coverage run -a --branch setup.py test
13-
14-
15-
[testenv:docs]
16-
changedir = docs
17-
deps =
18-
Sphinx
19-
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
20-
21-
2210
[flake8]
2311
ignore = N802
2412
max-complexity = 10
2513
exclude = __init__.py
2614

15+
2716
[testenv:flake8]
2817
deps = flake8
2918
commands = flake8 simple_history
3019

31-
[testenv:py26-1.4]
32-
basepython = python2.6
33-
deps =
34-
django == 1.4.13
35-
coverage == 3.6
36-
37-
[testenv:py26-1.5]
38-
basepython = python2.6
39-
deps =
40-
django == 1.5.8
41-
coverage == 3.6
42-
43-
[testenv:py26-1.6]
44-
basepython = python2.6
45-
deps =
46-
django == 1.6.5
47-
coverage == 3.6
48-
49-
[testenv:py26-trunk]
50-
basepython = python2.6
51-
deps =
52-
https://github.com/django/django/tarball/master
53-
coverage == 3.6
54-
55-
[testenv:py27-1.4]
56-
basepython = python2.7
57-
deps =
58-
django == 1.4.13
59-
coverage == 3.6
60-
61-
[testenv:py27-1.5]
62-
basepython = python2.7
63-
deps =
64-
django == 1.5.8
65-
coverage == 3.6
66-
67-
[testenv:py27-1.6]
68-
basepython = python2.7
69-
deps =
70-
django == 1.6.5
71-
coverage == 3.6
72-
73-
[testenv:py27-1.7]
74-
basepython = python2.7
75-
deps =
76-
django >= 1.7, < 1.8
77-
coverage == 3.6
78-
79-
[testenv:py27-trunk]
80-
basepython = python2.7
81-
deps =
82-
https://github.com/django/django/tarball/master
83-
coverage == 3.6
84-
85-
86-
[testenv:py32-1.5]
87-
basepython = python3.2
88-
deps =
89-
django == 1.5.8
90-
coverage == 3.6
91-
92-
[testenv:py32-1.6]
93-
basepython = python3.2
94-
deps =
95-
django == 1.6.5
96-
coverage == 3.6
97-
98-
[testenv:py32-1.7]
99-
basepython = python3.2
100-
deps =
101-
django >= 1.7, < 1.8
102-
coverage == 3.6
103-
104-
[testenv:py32-trunk]
105-
basepython = python3.2
106-
deps =
107-
https://github.com/django/django/tarball/master
108-
coverage == 3.6
109-
11020

111-
[testenv:py33-1.5]
112-
basepython = python3.3
113-
deps =
114-
django == 1.5.8
115-
coverage == 3.6
116-
117-
[testenv:py33-1.6]
118-
basepython = python3.3
119-
deps =
120-
django == 1.6.5
121-
coverage == 3.6
122-
123-
[testenv:py33-1.7]
124-
basepython = python3.3
125-
deps =
126-
django >= 1.7, < 1.8
127-
coverage == 3.6
128-
129-
[testenv:py33-trunk]
130-
basepython = python3.3
21+
[testenv:docs]
22+
changedir = docs
13123
deps =
132-
https://github.com/django/django/tarball/master
133-
coverage == 3.6
24+
Sphinx
25+
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
13426

135-
[testenv:py34-1.7]
136-
basepython = python3.4
137-
deps =
138-
django >= 1.7, < 1.8
139-
coverage == 3.6
14027

141-
[testenv:py34-trunk]
142-
basepython = python3.4
28+
[testenv]
14329
deps =
144-
https://github.com/django/django/tarball/master
145-
coverage == 3.6
30+
coverage
31+
py26: unittest2
32+
django14: Django>=1.4,<1.5
33+
django16: Django>=1.6,<1.7
34+
django17: Django>=1.7,<1.8
35+
djangotrunk: https://github.com/django/django/tarball/master
36+
commands = coverage run -a --branch setup.py test

0 commit comments

Comments
 (0)