Skip to content

Commit b1f829f

Browse files
committed
Enable testing with Django 2.1
testing with versions 1.11 and 2.0 is now only done on Python 3.6 while testing with 2.1 is performed on Python 3.5, 3.6 and 3.7. NOTE: we're still testing on an old 3.7-dev because Travis CI doesn't have the official 3.7 release yet. See: travis-ci/travis-ci#9815
1 parent e1d268f commit b1f829f

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
language: python
22
python:
3-
- 3.4
43
- 3.5
54
- 3.6
65
- "3.7-dev"
76
env:
87
# note: latest versions first b/c the top-most is included in new
98
# build stages if not specified
10-
- DJANGO=2.0
11-
- DJANGO=1.11
9+
- DJANGO=2.1
1210
stages:
1311
- django_not_installed
1412
- django_is_installed
1513
- test
1614
- build_and_package_sanity
1715
matrix:
18-
exclude:
19-
# Python/Django combinations that aren't officially supported
20-
- { python: "3.7-dev", env: DJANGO=1.11 }
2116
include:
2217
- { stage: django_not_installed, python: 3.6, env: TOXENV=django_not_installed }
2318
- { stage: django_is_installed, python: 3.6, env: TOXENV=django_is_installed }
19+
- { stage: test, python: 3.6, env: DJANGO=2.0 }
20+
- { stage: test, python: 3.6, env: DJANGO=1.11 }
2421
- { stage: test, python: 3.6, env: TOXENV=flake8 }
2522
- { stage: test, python: 3.6, env: TOXENV=pylint }
2623
- { stage: test, python: 3.6, env: TOXENV=readme }

tox.ini

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ envlist =
88
flake8
99
pylint
1010
readme
11-
py{34,35,36}-django111
12-
py{34,35,36,37}-django20
11+
py{36}-django{111,20}
12+
py{35,36,37}-django21
1313

1414
[testenv]
1515
commands =
@@ -18,7 +18,8 @@ commands =
1818
flake8: flake8
1919
pylint: pylint --rcfile=tox.ini -d missing-docstring --ignore=tests pylint_django setup
2020
readme: python setup.py check --restructuredtext --strict
21-
py{34,35,36,37}-django{111,20}: coverage run pylint_django/tests/test_func.py -v
21+
py{36}-django{111,20}: coverage run pylint_django/tests/test_func.py -v
22+
py{35,36,37}-django21: coverage run pylint_django/tests/test_func.py -v
2223
clean: find . -type f -name '*.pyc' -delete
2324
clean: find . -type d -name __pycache__ -delete
2425
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
@@ -30,16 +31,15 @@ deps =
3031
readme: readme_renderer
3132
django111: Django>=1.11,<2.0
3233
django20: Django>=2.0,<2.1
33-
py{37}: https://github.com/PyCQA/astroid/tarball/master#egg=astroid-master
34-
py{37}: https://github.com/PyCQA/pylint/tarball/master#egg=pylint-master
35-
py{34,35,36,37}: coverage
36-
py{34,35,36,37}: djangorestframework
37-
py{34,35,36,37}: django-model-utils
38-
py{34,35,36,37}: django-tables2
39-
py{34,35,36,37}: factory-boy
40-
py{34,35,36,37}: psycopg2
41-
py{34,35,36,37}: pylint-plugin-utils
42-
py{34,35,36,37}: pytest
34+
django21: Django>=2.1,<2.2
35+
py{35,36,37}: coverage
36+
py{35,36,37}: djangorestframework
37+
py{35,36,37}: django-model-utils
38+
py{35,36,37}: django-tables2
39+
py{35,36,37}: factory-boy
40+
py{35,36,37}: psycopg2
41+
py{35,36,37}: pylint-plugin-utils
42+
py{35,36,37}: pytest
4343
setenv =
4444
PIP_DISABLE_PIP_VERSION_CHECK = 1
4545
PYTHONPATH = .
@@ -52,6 +52,7 @@ whitelist_externals =
5252
DJANGO =
5353
1.11: django111
5454
2.0: django20
55+
2.1: django21
5556
5657
[flake8]
5758
max-line-length = 120

0 commit comments

Comments
 (0)