2019-11-24 13:47:18 +00:00
|
|
|
[tox]
|
|
|
|
|
envlist =
|
|
|
|
|
# list of supported Django/Python versioons:
|
2020-11-23 17:54:00 +00:00
|
|
|
py{36,37,38,39,py3}-django{22,30,31,master}
|
2019-11-25 10:11:57 +00:00
|
|
|
py38-{lint,docs}
|
2019-11-24 13:47:18 +00:00
|
|
|
|
|
|
|
|
[travis]
|
|
|
|
|
python =
|
|
|
|
|
3.6: py36
|
|
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
2020-11-23 17:54:00 +00:00
|
|
|
3.9: py39
|
2019-11-24 13:47:18 +00:00
|
|
|
pypy3: pypy3
|
|
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
|
deps =
|
2019-11-24 13:56:09 +00:00
|
|
|
-rrequirements.txt
|
2019-11-24 13:47:18 +00:00
|
|
|
django22: django>=2.2,<2.3
|
2020-11-23 17:43:50 +00:00
|
|
|
django30: django>=3.0,<3.1
|
|
|
|
|
django31: django>=3.1,<3.2
|
2019-11-24 13:47:18 +00:00
|
|
|
djangomaster: https://github.com/django/django/archive/master.tar.gz
|
2019-11-24 13:49:23 +00:00
|
|
|
usedevelop = True
|
2019-11-24 13:47:18 +00:00
|
|
|
commands =
|
2020-11-23 17:43:50 +00:00
|
|
|
{envbindir}/coverage run --source=defender {envbindir}/django-admin test defender --settings=defender.travis_settings
|
2019-11-24 14:17:10 +00:00
|
|
|
{envbindir}/coverage report -m
|
2019-11-25 10:11:57 +00:00
|
|
|
|
|
|
|
|
[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/*
|