Skip to content

Commit fa4d4e0

Browse files
committed
Add test that pulls dependencies from pylint and astroid @master
Travis CI is configured to run a cron job every day and this will perform a decent job of notifying us when pylint or astroid change something that breaks pylint-django.
1 parent eb19309 commit fa4d4e0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ matrix:
1818
- { stage: django_is_installed, python: 3.6, env: TOXENV=django_is_installed }
1919
- { stage: test, python: 3.6, env: DJANGO=2.0 }
2020
- { stage: test, python: 3.6, env: DJANGO=1.11 }
21+
- { stage: test, python: 3.6, env: DJANGO=master }
2122
- { stage: test, python: 3.6, env: TOXENV=flake8 }
2223
- { stage: test, python: 3.6, env: TOXENV=pylint }
2324
- { stage: test, python: 3.6, env: TOXENV=readme }

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ envlist =
88
flake8
99
pylint
1010
readme
11-
py{36}-django{111,20}
11+
py{36}-django{111,20,-master}
1212
py{35,36,37}-django21
1313

1414
[testenv]
@@ -18,7 +18,7 @@ commands =
1818
flake8: flake8
1919
pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django setup
2020
readme: python setup.py check --restructuredtext --strict
21-
py{36}-django{111,20}: coverage run pylint_django/tests/test_func.py -v
21+
py{36}-django{111,20,-master}: coverage run pylint_django/tests/test_func.py -v
2222
py{35,36,37}-django21: coverage run pylint_django/tests/test_func.py -v
2323
clean: find . -type f -name '*.pyc' -delete
2424
clean: find . -type d -name __pycache__ -delete
@@ -27,11 +27,14 @@ deps =
2727
django_is_installed: Django
2828
flake8: flake8
2929
pylint: pylint
30-
pylint: Django>=2.0,<2.1
30+
pylint: Django
3131
readme: readme_renderer
3232
django111: Django>=1.11,<2.0
3333
django20: Django>=2.0,<2.1
3434
django21: Django>=2.1,<2.2
35+
django-master: Django
36+
django-master: git+https://github.com/pycqa/astroid@master
37+
django-master: git+https://github.com/pycqa/pylint@master
3538
py{35,36,37}: coverage
3639
py{35,36,37}: djangorestframework
3740
py{35,36,37}: django-model-utils
@@ -53,6 +56,7 @@ DJANGO =
5356
1.11: django111
5457
2.0: django20
5558
2.1: django21
59+
master: django-master
5660
5761
[flake8]
5862
max-line-length = 120

0 commit comments

Comments
 (0)