mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
37 lines
No EOL
751 B
INI
37 lines
No EOL
751 B
INI
[tox]
|
|
envlist =
|
|
begin
|
|
py27-lint
|
|
py27-django{111}
|
|
py36-django{111,2,21,22}
|
|
py37-django{111,2,21,22}
|
|
coverage-report
|
|
|
|
[testenv]
|
|
deps=
|
|
django2: Django>=2.0,<2.1
|
|
django21: Django>=2.1,<2.2
|
|
django22: Django>=2.2,<2.3
|
|
django111: Django>=1.11,<1.12
|
|
coverage
|
|
pillow
|
|
ipdb
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
commands=
|
|
coverage run --source=categories --omit='.tox/*,example/*,*/tests/*' {toxinidir}/example/manage.py test --settings='settings-testing' categories{posargs}
|
|
|
|
[testenv:begin]
|
|
commands = coverage erase
|
|
|
|
[testenv:py27-lint]
|
|
deps=
|
|
flake8
|
|
|
|
commands=
|
|
flake8 . --ignore=E501 --exclude=build/,dist/,.tox/,doc_src
|
|
|
|
[testenv:coverage-report]
|
|
commands =
|
|
coverage report -m
|
|
coverage html |