Skip to content

Commit edf7c58

Browse files
authored
Merge pull request #29 from raiderrobert/travis-rework
Reworked travis and tox a lot
2 parents bd655b1 + a273abb commit edf7c58

File tree

2 files changed

+24
-28
lines changed

2 files changed

+24
-28
lines changed

.travis.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
language: python
22

3-
sudo: false
4-
5-
cache: pip
6-
7-
env:
8-
- DJANGO='django>=1.11.0,<2.0.0'
9-
- DJANGO='django>=1.10.0,<1.11.0'
10-
- DJANGO='django>=1.9.0,<1.10.0'
11-
- DJANGO='django>=1.8.0,<1.9.0'
12-
133
python:
144
- "2.7"
155
- "3.4"
166
- "3.5"
177
- "3.6"
18-
- "nightly"
19-
20-
script: python tests.py
218

229
install:
23-
- travis_retry pip install $DJANGO
24-
- travis_retry pip install coveralls
25-
- travis_retry pip install -r requirements.txt
10+
- pip install tox-travis python-coveralls
11+
12+
script:
13+
- tox
2614

2715
after_success:
28-
- coveralls
16+
coveralls

tox.ini

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
[tox]
2-
envlist = {py34,py35,py36}-django20, {py27,py35,py36}-django110, {py27,py34,py35,py36}-django19, {py27,py32,py33,py34,py35,py36}-django18, {py27,py32,py33,py34}-django17
2+
args_are_paths = false
3+
envlist =
4+
py27-{1.11},
5+
py34-{1.11,2.0},
6+
py35-{1.11,2.0,master},
7+
py36-{2.0,master}
8+
9+
10+
[travis]
11+
python:
12+
2.7: py27
13+
3.6: py36
314

415
[testenv]
516
commands = python tests.py
617
basepython =
718
py27: python2.7
8-
py32: python3.2
9-
py33: python3.3
1019
py34: python3.4
1120
py35: python3.5
1221
py36: python3.6
13-
deps=
14-
pytest
15-
django17: Django>=1.7,<1.8
16-
django18: Django>=1.8,<1.9
17-
django19: Django>=1.9,<1.10
18-
django110: Django>=1.10,<1.11
19-
django111: Django>=1.11,<2.0
20-
django20: Django>=2.0
22+
deps =
23+
1.11: Django>=1.11,<2.0
24+
2.0: Django>=2.0,<2.1
25+
master: https://github.com/django/django/archive/master.tar.gz
26+
usedevelop = true
27+
pip_pre = true
28+
setenv = PYTHONPATH={toxinidir}

0 commit comments

Comments
 (0)