-
Notifications
You must be signed in to change notification settings - Fork 290
/
tox.ini
50 lines (41 loc) · 1.19 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
[tox]
minversion = 1.6
skipsdist=True
[testenv]
usedevelop=True
basepython = python2.7
changedir = {toxinidir}
deps =
--requirement=requirements/all.txt
[testenv:test-admin]
commands =
trial --rterrors {posargs:admin}
[testenv:test-benchmark]
commands =
trial --rterrors {posargs:benchmark}
[testenv:test-flocker]
commands =
trial --rterrors {posargs:flocker}
[testenv:lint]
# ``ignore_errors`` allows both commands to run.
# tox will still exit with failure code if either command fails.
ignore_errors=True
commands =
flake8 {posargs:admin benchmark flocker}
pylint {posargs:admin benchmark flocker}
[testenv:docs-lint]
commands =
sphinx-build -d {envtmpdir}/doctrees -q -W -n -b dummy docs build/{envname}
[testenv:docs-spelling]
ignore_errors = True
commands =
sphinx-build -d {envtmpdir}/doctrees -Q -b spelling docs build/{envname}
python -m fileinput build/{envname}/output.txt
[testenv:docs-linkcheck]
ignore_errors = True
commands =
sphinx-build -d {envtmpdir}/doctrees -Q -b linkcheck docs build/{envname}
python -m fileinput build/{envname}/output.txt
[testenv:docs-html]
commands =
sphinx-build -d {envtmpdir}/doctrees -q -b html docs build/{envname}