Skip to content

Commit 768ae5e

Browse files
authored
travis: Add test for Django 2.2 (#407)
1 parent 8649188 commit 768ae5e

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.travis.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ after_success:
3737

3838
matrix:
3939
include:
40-
- &django_py3
40+
- &django_1_11
4141
name: "Django 1.11 test (Python 3.7)"
42-
python: "3.7"
42+
env:
43+
- DJANGO_VERSION=1.11.26
44+
python: "3.5"
4345
install:
4446
- pip install -U pip
45-
- wget https://github.com/django/django/archive/1.11.18.tar.gz
46-
- tar xf 1.11.18.tar.gz
47-
- pip install django-1.11.18/
48-
- cp ci/test_mysql.py django-1.11.18/tests/
47+
- wget https://github.com/django/django/archive/${DJANGO_VERSION}.tar.gz
48+
- tar xf ${DJANGO_VERSION}.tar.gz
49+
- pip install django-${DJANGO_VERSION}/
50+
- cp ci/test_mysql.py django-${DJANGO_VERSION}/tests/
4951
- pip install .
5052

5153
before_script:
@@ -54,7 +56,14 @@ matrix:
5456
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
5557

5658
script:
57-
- cd django-1.11.18/tests/
59+
- cd django-${DJANGO_VERSION}/tests/
5860
- ./runtests.py --parallel=1 --settings=test_mysql
5961

62+
- &django_2_2
63+
<<: *django_py27
64+
name: "Django 2.2 test (Python 3.8)"
65+
python: "3.8"
66+
env:
67+
- DJANGO_VERSION=2.2.7
68+
6069
# vim: sw=2 ts=2 sts=2

0 commit comments

Comments
 (0)