forked from att-comdev/armada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (38 loc) · 898 Bytes
/
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
43
44
45
46
[tox]
skipsdist = True
envlist = py27, pep8, coverage, bandit
[testenv]
deps=
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv=
VIRTUAL_ENV={envdir}
usedevelop = True
commands =
find . -type f -name "*.pyc" -delete
python -V
py.test -vvv -s --ignore=hapi
[testenv:docs]
commands =
python setup.py build_sphinx
[testenv:genconfig]
commands =
oslo-config-generator --config-file=etc/armada/config-generator.conf
[testenv:pep8]
deps=
{[testenv]deps}
commands =
flake8 {posargs}
[testenv:bandit]
deps = .[bandit]
commands =
bandit -r armada -x armada/tests -n 5
[testenv:coverage]
deps=
{[testenv]deps}
commands =
nosetests -w armada/tests/unit --cover-package=armada --with-coverage --cover-tests --exclude=.tox
[flake8]
filename= *.py
ignore = W503,E302
exclude= .git, .idea, .tox, *.egg-info, *.eggs, bin, dist, hapi