Documents up-to-date
[doctor.git] / tox.ini
1 [tox]
2 minversion = 2.3.1
3 envlist = py36,pep8,docs,docs-linkcheck
4 skipsdist = True
5
6 [testenv]
7 usedevelop = True
8 install_command = pip3 install \
9     -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/stein \
10     {opts} {packages}
11 setenv = VIRTUAL_ENV={envdir}
12 deps = -r{toxinidir}/requirements.txt
13 passenv =
14     OS_AUTH_URL
15     OS_USERNAME
16     OS_PASSWORD
17     OS_USER_DOMAIN_NAME
18     OS_USER_DOMAIN_ID
19     OS_PROJECT_NAME
20     OS_TENANT_NAME
21     OS_PROJECT_DOMAIN_NAME
22     OS_PROJECT_DOMAIN_ID
23     OS_REGION_NAME
24     OS_CACERT
25     IMAGE_NAME
26     VM_COUNT
27     PROFILER_TYPE
28     CI_DEBUG
29     INSTALLER_TYPE
30     INSTALLER_IP
31     INSPECTOR_TYPE
32     ADMIN_TOOL_TYPE
33     TEST_CASE
34     SSH_KEY
35     APP_MANAGER_TYPE
36 changedir = {toxinidir}/doctor_tests
37 commands = doctor-test
38            /usr/bin/find {toxinidir} -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
39
40 [testenv:pep8]
41 changedir = {toxinidir}
42 commands = flake8
43
44 [flake8]
45 # E123, E125 skipped as they are invalid PEP-8.
46 # H106: Don’t put vim configuration in source files
47 # H203: Use assertIs(Not)None to check for None
48
49 show-source = True
50 ignore = E123,E125
51 enable-extensions=H106,H203
52 builtins = _
53 filename = *.py,app.wsgi
54 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tests
55
56 [testenv:docs]
57 changedir = {toxinidir}
58 deps = -rdocs/requirements.txt
59 commands =
60     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
61     echo "Generated docs available in {toxinidir}/docs/_build/html"
62 whitelist_externals = echo
63
64 [testenv:docs-linkcheck]
65 changedir = {toxinidir}
66 deps = -rdocs/requirements.txt
67 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck