forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
108 lines (94 loc) · 2.28 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[tox]
envlist = py27
skipsdist = true
[pytest]
minversion = 2.8
addopts = --pyargs
testpaths = tests
[testenv]
skip_install = true
# N.B. "hypothesis" in the list below is the property-based testing library,
# not our own code.
deps =
coverage
mock
pytest
hypothesis
factory-boy
-rrequirements.txt
passenv =
TEST_DATABASE_URL
ELASTICSEARCH_URL
PYTEST_ADDOPTS
commands =
coverage run --parallel --source h,tests/h -m pytest -Werror {posargs:tests/h/}
[functional]
deps =
pytest
webtest
factory-boy
-rrequirements.txt
passenv =
BROKER_URL
ELASTICSEARCH_URL
TEST_DATABASE_URL
PYTEST_ADDOPTS
commands = pytest -Werror {posargs:tests/functional/}
[testenv:functional]
deps = {[functional]deps}
passenv = {[functional]passenv}
commands = {[functional]commands}
[testenv:functional-py36]
deps = {[functional]deps}
passenv = {[functional]passenv}
commands = {[functional]commands}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:codecov]
deps = codecov
skip_install = true
passenv = CI TRAVIS*
commands = codecov
[docs]
basepython = python3.6
changedir = docs
deps =
sphinx
sphinx_rtd_theme
sphinx-autobuild
[testenv:docs]
basepython = {[docs]basepython}
changedir = {[docs]changedir}
deps = {[docs]deps}
commands = sphinx-autobuild -BqT -b dirhtml -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:checkdocs]
basepython = {[docs]basepython}
changedir = {[docs]changedir}
deps = {[docs]deps}
commands = sphinx-build -qTWn -b dirhtml -d {envtmpdir}/doctrees . {envtmpdir}/html
[docstrings]
basepython = {[docs]basepython}
commands = sphinx-apidoc -ePMF -a -H "Dooccsstrinngs!!" --ext-intersphinx --ext-todo --ext-viewcode -o {envtmpdir}/rst .
deps =
{[docs]deps}
{[testenv]deps}
[testenv:docstrings]
basepython = {[docstrings]basepython}
deps = {[docstrings]deps}
commands =
{[docstrings]commands}
sphinx-autobuild -BqT -z h -z tests -b dirhtml {envtmpdir}/rst {envtmpdir}/dirhtml
[testenv:checkdocstrings]
basepython = {[docstrings]basepython}
deps = {[docstrings]deps}
commands =
{[docstrings]commands}
sphinx-build -qTn -b dirhtml {envtmpdir}/rst {envtmpdir}/dirhtml