-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
65 lines (55 loc) · 1.78 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
[tox]
envlist = py27,pep8
minversion = 3.18
skipsdist = False
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
DISTIL_TESTS_CONFIGS_DIR={toxinidir}/distil/tests/etc/
DISCOVER_DIRECTORY=distil/tests/unit
deps =
-c {env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args="{posargs}"
allowlist_externals =
bash
rm
find
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
commands =
flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands =
python setup.py build_sphinx
[testenv:api-ref]
# This environment is called from CI scripts to test and publish
# the API Ref to developer.openstack.org.
#
allowlist_externals = bash
rm
commands =
rm -rf api-ref/build
sphinx-build -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
[testenv:pylint]
setenv = VIRTUAL_ENV={envdir}
commands = bash tools/lintstack.sh
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:genconfig]
commands =
oslo-config-generator --config-file etc/os-config-generator/distil.conf --output-file etc/distil.conf.sample
[flake8]
ignore = F401,H302,H305,H306,H307,H404,H405
show-source = true
builtins = _
exclude= .venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,*distil/transformer*,*distil/interface*,*distil/NoPickle*,*distil/database*,*distil/helpers*,*distil/rates*,*distil/api/helpers*,*distil/api/web*,*bin*,*odoo/odoo*,*build/lib*,*bin/web*,*distil/tests*,*distil/web*,*client/shell.py,*client/client.py,*distil/models*