forked from HewlettPackard/ironic-driver-oneview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (36 loc) · 1.07 KB
/
tox.ini
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
[tox]
minversion = 1.8
skipsdist = True
envlist = py27,py35,pep8
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = rm
commands = rm -f .testrepository/times.dbm
ostestr {posargs}
[testenv:pep8]
commands = flake8
[testenv:genconfig]
sitepackages = False
envdir = {toxworkdir}/venv
commands =
oslo-config-generator --config-file=config/oneviewd-config-generator.conf
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
whitelist_externals = py.test
commands = py.test --cov ./ironic_oneviewd --cov-report term-missing --cov-report xml
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,E129
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build