mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
49 lines
1.1 KiB
INI
49 lines
1.1 KiB
INI
[tox]
|
|
envlist =
|
|
# list of supported Django/Python versioons:
|
|
# https://docs.djangoproject.com/en/2.2/faq/install/#what-python-version-can-i-use-with-django
|
|
py{27,35,36,37,py3}-django111
|
|
py35-django(21,22)
|
|
py{36,37,py3}-django{21,22,master}
|
|
py38-django22
|
|
py38-{lint,docs}
|
|
|
|
[travis]
|
|
python =
|
|
2.7: py27
|
|
3.5: py35
|
|
3.6: py36
|
|
3.7: py37
|
|
3.8: py38
|
|
pypy3: pypy3
|
|
|
|
[testenv]
|
|
deps =
|
|
-rrequirements.txt
|
|
py27: mock
|
|
django111: django>=1.11,<2.0
|
|
django21: django>=2.1,<2.2
|
|
django22: django>=2.2,<2.3
|
|
djangomaster: https://github.com/django/django/archive/master.tar.gz
|
|
usedevelop = True
|
|
commands =
|
|
{envbindir}/coverage run --source=defender {envbindir}/django-admin.py test defender --settings=defender.travis_settings
|
|
{envbindir}/coverage report -m
|
|
|
|
[testenv:py38-docs]
|
|
basepython = python3.8
|
|
deps =
|
|
-rrequirements.txt
|
|
Sphinx
|
|
sphinx_rtd_theme
|
|
commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
|
|
|
|
[testenv:py38-lint]
|
|
basepython = python3.8
|
|
deps =
|
|
twine
|
|
check-manifest
|
|
commands =
|
|
check-manifest -v
|
|
python setup.py sdist
|
|
twine check dist/*
|