This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
forked from callowayproject/django-news-sitemaps
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
59 lines (54 loc) · 1.54 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist =
{py27}-django{111}
{py35}-django{111,20}
{py36}-django{111,20,21,22,30}
{py37}-django{20,21,22,30}
[pytest]
django_find_project = false
DJANGO_SETTINGS_MODULE=example.settings
[testenv]
description = Run tests in {envname} environment
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/example:{env:PYTHONPATH:}
commands = {posargs:pytest} news_sitemaps/tests.py
deps =
py27: pytest<4.2
py27: attrs==19.1.0
py3: pytest>=5.2.0
pytest-django
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
[testenv:clean]
description = Clean all build and test artifacts
skipsdist = true
skip_install = true
deps =
whitelist_externals =
find
rm
commands =
find {toxinidir} -type f -name "*.pyc" -delete
find {toxinidir} -type d -name "__pycache__" -delete
rm -rf {toxworkdir} {toxinidir}/.pytest_cache {toxinidir}/build {toxinidir}/django_news_sitemaps.egg-info
[testenv:pep8]
description = Run PEP8 pycodestyle (flake8) against the news_sitemaps package directory
skipsdist = true
skip_install = true
basepython = python3.7
deps = pycodestyle
commands = pycodestyle news_sitemaps
[testenv:coverage]
description = Run test coverage and display results
deps =
{[testenv]deps}
coverage
pytest-cov
whitelist_externals =
echo
commands =
pytest --cov-config .coveragerc --cov-report html --cov-report term --cov=news_sitemaps
echo HTML coverage report: {toxinidir}/build/coverage/index.html