-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tox targets for Django 2.2 & master. Add coverage & flake8 valida…
…tion. Fix templatetags test view.
- Loading branch information
Showing
8 changed files
with
72 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .tests import MiddlewareTest | ||
from .tests import MiddlewareTest | ||
|
||
__all__ = ['MiddlewareTest'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,63 @@ | ||
[tox] | ||
envlist = py{27,34,35,36}-django{18,19,110,111}, | ||
envlist = flake8, | ||
py{27,34,35,36}-django{18,19,110,111}, | ||
py{34}-django{20}, | ||
py{35,36,37}-django{20,21} | ||
py{35,36,37}-django{20,21,22} | ||
py{36,37}-djangomaster, | ||
coverage | ||
|
||
install_command = pip install {opts} {packages} | ||
|
||
[testenv] | ||
basepython = | ||
py27: python2.7 | ||
py34: python3.4 | ||
py35: python3.5 | ||
py36: python3.6 | ||
py37: python3.7 | ||
deps = | ||
-e. | ||
flake8: flake8 | ||
django18: Django>=1.8,<1.9 | ||
django19: Django>=1.9,<1.10 | ||
django110: Django>=1.10,<1.11 | ||
django111: Django>=1.11,<2.0 | ||
django20: Django>=2.0,<2.1 | ||
django21: Django>=2.1,<2.2 | ||
django22: Django>=2.2,<3.0 | ||
djangomaster: https://github.com/django/django/archive/master.tar.gz | ||
commands = | ||
python -Wd manage.py test | ||
python -Wd manage.py test {posargs} | ||
|
||
[tox:travis] | ||
2.7 = py27 | ||
3.4 = py34 | ||
3.5 = py35 | ||
3.6 = py36 | ||
3.7 = py37 | ||
|
||
[travis:env] | ||
DJANGO = | ||
1.8: django18 | ||
1.9: django19 | ||
1.10: django110 | ||
1.11: django111 | ||
2.0: django20 | ||
2.1: django21 | ||
2.2: django22 | ||
master: djangomaster | ||
|
||
[testenv:coverage] | ||
basepython = python3.6 | ||
deps = | ||
coverage | ||
Django>=2.2,<3.0 | ||
commands = | ||
python -Wd {envbindir}/coverage run --source=django_user_agents --omit=*/tests/* manage.py test {posargs} | ||
coverage report -m | ||
|
||
[testenv:py36-djangomaster] | ||
ignore_outcome=true | ||
|
||
[testenv:py37-djangomaster] | ||
ignore_outcome=true | ||
|
||
[testenv:flake8] | ||
basepython = python2.7 | ||
deps = | ||
flake8 | ||
commands = flake8 django_user_agents --ignore=E501 |