Merge "bugfix: tc006, tc079, tc082 miss grafana dashboard in local deployment"
[yardstick.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 skipsdist = True
4 envlist = py{27,3},pep8,functional{,-py3},coverage
5
6 [testenv]
7 usedevelop=True
8 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
9 deps =
10     -r{toxinidir}/requirements.txt
11     -r{toxinidir}/test-requirements.txt
12 whitelist_externals = /bin/bash
13
14 [testenv:py27]
15 commands =
16   /bin/bash {toxinidir}/tools/run_tests.sh --unit
17
18 [testenv:py3]
19 basepython = python3
20 commands = {[testenv:py27]commands}
21
22 [testenv:pep8]
23 # for gate testing, scans only the files changed in the last commit
24 commands =
25   /bin/bash tools/coding-checks.sh --pylint HEAD~ '{posargs}'
26
27 [testenv:pep8-full]
28 # For manual testing, scans the whole codebase
29 commands =
30   /bin/bash tools/coding-checks.sh --pylint '{posargs}'
31
32 [testenv:coverage]
33 basepython = python3
34 commands =
35   /bin/bash {toxinidir}/tools/run_tests.sh --coverage
36
37 [testenv:functional]
38 commands =
39   /bin/bash {toxinidir}/tools/run_tests.sh --functional
40
41 [testenv:functional-py3]
42 basepython = python3
43 commands = {[testenv:functional]commands}
44
45 [testenv:os-requirements]
46 commands =
47     python {toxinidir}/tools/os-requirements-check.py {envdir}