[bugfix] gui build faied in yardstick docker build
[yardstick.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 skipsdist = True
4 envlist = py3,pep8,functional-py3,coverage
5
6 [testenv]
7 usedevelop=True
8 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY BRANCH
9 setenv =
10    VIRTUAL_ENV={envdir}
11 deps =
12     -chttps://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt
13     -c{toxinidir}/upper-constraints.txt
14     -r{toxinidir}/requirements.txt
15     -r{toxinidir}/test-requirements.txt
16
17 whitelist_externals = /bin/bash
18
19 [testenv:py27]
20 commands =
21   /bin/bash {toxinidir}/tools/run_tests.sh --unit
22
23 [testenv:py3]
24 basepython = python3
25 commands = {[testenv:py27]commands}
26
27 [testenv:pep8]
28 # for gate testing, scans only the files changed in the last commit
29 commands =
30   /bin/bash tools/coding-checks.sh --pylint HEAD~ '{posargs}'
31
32 [testenv:pep8-full]
33 # For manual testing, scans the whole codebase
34 commands =
35   /bin/bash tools/coding-checks.sh --pylint '{posargs}'
36
37 [testenv:coverage]
38 basepython = python3
39 commands =
40   /bin/bash {toxinidir}/tools/run_tests.sh --coverage
41
42 [testenv:functional]
43 commands =
44   /bin/bash {toxinidir}/tools/run_tests.sh --functional
45
46 [testenv:functional-py3]
47 basepython = python3
48 commands = {[testenv:functional]commands}
49
50 [testenv:docs]
51 deps = -rdocs/requirements.txt
52 commands =
53     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
54     echo "Generated docs available in {toxinidir}/docs/_build/html"
55 whitelist_externals = echo
56
57 [testenv:docs-linkcheck]
58 deps = -rdocs/requirements.txt
59 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
60
61 [testenv:os-requirements]
62 commands =
63     python {toxinidir}/tools/os-requirements-check.py {envdir}