forked from jarretraim/barbican-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
58 lines (49 loc) · 1.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist = pep8,py27,docs
[testenv]
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage report -m
[testenv:cover]
deps =
{[testenv]deps}
diff_cover
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage xml
diff-cover --fail-under 100 coverage.xml
[testenv:pep8]
sitepackages = False
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:py3pep8]
# This hack is in place to allow us to run py3 based flake8
# without installing barbican.
basepython = python3
install_command = /bin/echo {packages}
commands =
pip install "hacking>=0.9.2,<0.10"
flake8 barbican setup.py
[testenv:docs]
envdir = {toxworkdir}/venv
commands=
python setup.py build_sphinx
[testenv:functional]
# This tox env is purely to make local test development easier
# Note: This requires local running instances of Barbican and Keystone
deps =
{[testenv]deps}
nose
git+https://github.com/openstack/tempest.git
commands = nosetests {toxinidir}/functionaltests --match='{posargs}'
[flake8]
# E711 ignored because of sqlalchemy override of == None
ignore = E711
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*.eggs,*openstack/common,contrib,
functionaltests,*alembic_migrations/versions,*docs/target,*.egg