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
|
[tox]
minversion = 2.3.1
envlist = py34, pep8,docs,docs-linkcheck
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install \
-chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike \
{opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
passenv =
OS_AUTH_URL
OS_USERNAME
OS_PASSWORD
OS_USER_DOMAIN_NAME
OS_USER_DOMAIN_ID
OS_PROJECT_NAME
OS_TENANT_NAME
OS_PROJECT_DOMAIN_NAME
OS_PROJECT_DOMAIN_ID
OS_REGION_NAME
OS_CACERT
IMAGE_NAME
VM_COUNT
PROFILER_TYPE
CI_DEBUG
INSTALLER_TYPE
INSTALLER_IP
INSPECTOR_TYPE
ADMIN_TOOL_TYPE
TEST_CASE
SSH_KEY
changedir = {toxinidir}/doctor_tests
commands = doctor-test
/bin/find {toxinidir} -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
[testenv:pep8]
changedir = {toxinidir}
commands = flake8
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# H106: Don’t put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
show-source = True
ignore = E123,E125
enable-extensions=H106,H203
builtins = _
filename = *.py,app.wsgi
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tests
[testenv:docs]
changedir = {toxinidir}
deps = -rdocs/requirements.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo
[testenv:docs-linkcheck]
changedir = {toxinidir}
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
|