Skip to content

Commit d95823b

Browse files
authored
Merge pull request #75 from mvbrn/master
add Python 3.7 and Django 2.2/3.0 to the test matrix
2 parents 6e9fd52 + 3c0935d commit d95823b

File tree

2 files changed

+51
-27
lines changed

2 files changed

+51
-27
lines changed

.travis.yml

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,67 @@ sudo: false
44
matrix:
55
include:
66
- python: 2.7
7-
env: DJANGO=1.8.*
7+
env: DJANGO="==1.8.*"
88
- python: 2.7
9-
env: DJANGO=1.9.*
9+
env: DJANGO="==1.9.*"
1010
- python: 2.7
11-
env: DJANGO=1.10.*
11+
env: DJANGO="==1.10.*"
1212
- python: 2.7
13-
env: DJANGO=1.11.*
13+
env: DJANGO="==1.11.*"
1414

1515
- python: 3.4
16-
env: DJANGO=1.8.*
16+
env: DJANGO="==1.8.*"
1717
- python: 3.4
18-
env: DJANGO=1.9.*
18+
env: DJANGO="==1.9.*"
1919
- python: 3.4
20-
env: DJANGO=1.10.*
20+
env: DJANGO="==1.10.*"
2121
- python: 3.4
22-
env: DJANGO=1.11.*
22+
env: DJANGO="==1.11.*"
2323

2424
- python: 3.5
25-
env: DJANGO=1.8.*
25+
env: DJANGO="==1.8.*"
2626
- python: 3.5
27-
env: DJANGO=1.9.*
27+
env: DJANGO="==1.9.*"
2828
- python: 3.5
29-
env: DJANGO=1.10.*
29+
env: DJANGO="==1.10.*"
3030
- python: 3.5
31-
env: DJANGO=1.11.*
31+
env: DJANGO="==1.11.*"
3232
- python: 3.5
33-
env: DJANGO=2.0.*
33+
env: DJANGO="==2.0.*"
3434
- python: 3.5
35-
env: DJANGO=2.1.*
35+
env: DJANGO="==2.1.*"
36+
- python: 3.5
37+
env: DJANGO="==2.2.*"
3638

3739
- python: 3.6
38-
env: DJANGO=1.8.*
40+
env: DJANGO="==1.8.*"
41+
- python: 3.6
42+
env: DJANGO="==1.9.*"
3943
- python: 3.6
40-
env: DJANGO=1.9.*
44+
env: DJANGO="==1.10.*"
4145
- python: 3.6
42-
env: DJANGO=1.10.*
46+
env: DJANGO="==1.11.*"
4347
- python: 3.6
44-
env: DJANGO=1.11.*
48+
env: DJANGO="==2.0.*"
4549
- python: 3.6
46-
env: DJANGO=2.0.*
50+
env: DJANGO="==2.1.*"
4751
- python: 3.6
48-
env: DJANGO=2.1.*
52+
env: DJANGO="==2.2.*"
53+
- python: 3.6
54+
env: DJANGO=">=3.0a1,<3.1"
55+
56+
- python: 3.7
57+
env: DJANGO="==2.0.*"
58+
- python: 3.7
59+
env: DJANGO="==2.1.*"
60+
- python: 3.7
61+
env: DJANGO="==2.2.*"
62+
- python: 3.7
63+
env: DJANGO=">=3.0a1,<3.1"
4964

5065
- os: osx
5166
language: generic
52-
env: DJANGO=1.10.*
67+
env: DJANGO="==1.10.*"
5368

5469
# Perform the manual steps on OSX to install Python3 and activate venv:
5570
# Since Python versions have been tested on Linux and it is only a matter of
@@ -60,7 +75,7 @@ before_install:
6075
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source env/bin/activate ; fi
6176

6277
install:
63-
- pip install -q Django==$DJANGO
78+
- pip install -q django$DJANGO
6479
- python setup.py install
6580

6681
script: python runtests.py

runtests.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,20 @@
3030
},
3131
}],
3232
ROOT_URLCONF='martor.tests.urls',
33-
INSTALLED_APPS=['django.contrib.auth',
34-
'django.contrib.contenttypes',
35-
'django.contrib.sessions',
36-
'django.contrib.admin',
37-
'martor'])
33+
INSTALLED_APPS=[
34+
'django.contrib.auth',
35+
'django.contrib.contenttypes',
36+
'django.contrib.sessions',
37+
'django.contrib.messages',
38+
'django.contrib.admin',
39+
'martor'
40+
],
41+
MIDDLEWARE=[
42+
'django.contrib.sessions.middleware.SessionMiddleware',
43+
'django.contrib.auth.middleware.AuthenticationMiddleware',
44+
'django.contrib.messages.middleware.MessageMiddleware',
45+
],
46+
)
3847

3948
try:
4049
# Django <= 1.8

0 commit comments

Comments
 (0)