add placeholder for testings

This commit is contained in:
Mia von Steinkirch 2020-02-08 18:22:30 -08:00
parent 3477df71a7
commit 35061b3899
3 changed files with 47 additions and 0 deletions

0
Testing/requirements.txt Normal file
View file

0
Testing/setup.py Normal file
View file

47
Testing/tox.ini Normal file
View file

@ -0,0 +1,47 @@
[tox]
envlist =
lint,py27,py35,py36,py37,py38,pypy,pypy3,docs,coverage-report,flake8,spelling
[testenv:coverage-report]
basepython = python3.7
skip_install = true
deps = coverage[toml]>=5.0.2
commands =
coverage combine
coverage report
[pipupgrade]
commands =
{envpython} -m pip install --upgrade pip
[testenv:docs]
changedir = {toxinidir}/docs
commands =
{[pipupgrade]commands}
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
{[cleanup]commands}
deps =
sphinx
sphinx_rtd_theme
[cleanup]
commands =
find {toxinidir}/tests -type f -name "*.pyc" -delete
find {toxinidir}/tests -type d -name "__pycache__" -delete
find {toxinidir}/src -type f -name "*.pyc" -delete
find {toxinidir}/src -type d -name "__pycache__" -delete
find {toxinidir}/src -type f -path "*.egg-info*" -delete
find {toxinidir}/src -type d -path "*.egg-info" -delete
[testenv:flake8]
changedir = {toxinidir}
deps = flake8
commands =
{[pipupgrade]commands}
flake8 {toxinidir}/src/django_registration {toxinidir}/tests
{[cleanup]commands}