Skip to content

Commit 2035e21

Browse files
committed
tox-based build matrix
1 parent 8b81b17 commit 2035e21

File tree

5 files changed

+37
-19
lines changed

5 files changed

+37
-19
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ tests/htmlcov
1212
.coverage
1313
htmlcov
1414
*.egg-info
15+
.cache/
16+
.eggs/
17+
.tox/

Diff for: .travis.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
language: python
22

33
python:
4-
- "3.4"
4+
- "3.5"
55
- "3.3"
66
- "2.7"
7+
- "pypy"
8+
- "pypy3"
79

810
# command to install dependencies
911
install:
10-
- pip install -r test${TRAVIS_PYTHON_VERSION:0:1}_requirements.txt
11-
- pip install coveralls
12+
- pip install tox-travis
1213

1314
# command to run tests
1415
script:
15-
- py.test --cov=restless
16-
17-
# command to notify coveralls
18-
after_success:
19-
- coveralls
16+
- tox

Diff for: test2_requirements.txt

-3
This file was deleted.

Diff for: test3_requirements.txt

-8
This file was deleted.

Diff for: tox.ini

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[tox]
2+
envlist = py{27,34,35,py27,py32,py33}-{dj18,dj19,pyramid,tornado},
3+
py{27,34,35,py27}-flask
4+
5+
[testenv]
6+
basepython =
7+
py27: python2.7
8+
py34: python3.4
9+
py35: python3.5
10+
pypy27: pypy2.7
11+
pypy32: pypy3.2
12+
pypy33: pypy3.3
13+
deps =
14+
pytest
15+
pytest-cov
16+
dj18: Django>=1.8,<1.9
17+
dj19: Django>=1.9,<1.10
18+
flask: Flask
19+
pyramid: Pyramid
20+
tornado: tornado
21+
commands =
22+
py.test --cov=restless
23+
24+
[tox:travis]
25+
2.7 = py27
26+
3.4 = py34
27+
3.5 = py35
28+
pypy = pypy27
29+
pypy3 = pypy32

0 commit comments

Comments
 (0)