forked from geex-arts/django-jet
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
87 lines (78 loc) · 2.11 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist =
{py35,py36,py37,pypy3}-django-20
{py35,py36,py37,pypy3}-django-21
{py35,py36,py37,pypy3}-django-22
# {py36,py37,pypy3}-django-master
lint-django-22,
coverage-django-22,
docs,
desc
[testenv]
deps =
pytest
pytest-mock
django-20: Django>=2.0b1,<2.1
django-21: Django>=2.1,<2.2
django-22: Django>=2.2,<2.3
django-master: https://github.com/django/django/archive/master.tar.gz
coverage: coverage
coverage: coverage_pth
# coverage: coveralls
# coverage: PyYAML
lint: flake8
lint: flake8-import-order
lint: flake8-builtins
lint: flake8-logging-format
lint: flake8-rst-docstrings
lint: flake8-docstrings
setenv =
DJANGO_SETTINGS_MODULE=jet.tests.settings
PYTHONWARNINGS=module::DeprecationWarning
passenv = TRAVIS TRAVIS_*
commands =
{envpython} ./manage.py check
{envpython} ./manage.py test jet
# {envpython} -W error -W ignore:::pysimplesoap.transport: -W ignore:::site: ./manage.py test
# {envpython} -W all ./manage.py test
# unit-tests: {envpython} ./manage.py test
# no-warnings: {envpython} -W error -W ignore:::pysimplesoap.transport: -W ignore:::site: ./manage.py test
# show-warnings: {envpython} -W all ./manage.py test
# functional-tests: xvfb-run {envpython} ./manage.py test functional_tests
# check: {envpython} ./manage.py check
[testenv:coverage]
commands =
coverage erase
coverage run manage.py test jet
coverage combine
coverage report -m
coverage html
# coveralls
[testenv:lint]
commands =
{envpython} -W error ./manage.py test jet
{envpython} -W always ./manage.py test jet
flake8
flake8 --version
flake8 --statistics
[testenv:docs]
skip_install = true
changedir = docs
deps =
-r docs/requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:desc]
deps =
docutils
Pygments
commands =
python setup.py check --restructuredtext --strict
# [testenv:flake8]
# deps =
# flake8
# flake8-import-order
# flake8-builtins
# flake8-logging-format
# flake8-rst-docstrings
# flake8-docstrings