Merge "Tox: add a pep8 target"
[yardstick.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 skipsdist = True
4 envlist = py27,py3,pep8
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 commands = /bin/bash ./run_tests.sh
13 whitelist_externals = /bin/bash
14
15 [testenv:py27]
16 # don't re-run coverage on both py27 py3, it takes too long
17 setenv =
18     SKIP_COVERAGE=1
19
20 [testenv:pep8]
21 # for gate testing, scans only the files changed in the last commit
22 commands =
23   /bin/bash tools/coding-checks.sh --pylint HEAD~ '{posargs}'
24
25 [testenv:pep8-full]
26 # For manual testing, scans the whole codebase
27 commands =
28   /bin/bash tools/coding-checks.sh --pylint '{posargs}'
29
30 [testenv:os-requirements]
31 commands =
32     python {toxinidir}/tools/os-requirements-check.py {envdir}