forked from openstack-archive/gnocchi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (57 loc) · 2.18 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
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
envlist = py27-postgresql,py27,py33,py34,pypy,pep8
[testenv]
usedevelop = True
sitepackages = False
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U --allow-external ceilometer --allow-insecure ceilometer {opts} {packages}
commands = python setup.py testr --slowest --testr-args="{posargs}"
[testenv:pep8]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
hacking>=0.9.2,<0.10
commands = flake8
[testenv:py27]
# NOTE(jd): doc8 does not work with Python 3
commands = doc8 doc/source
python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py33]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
[testenv:py34]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
[testenv:py27-postgresql]
basepython = python2.7
commands = {toxinidir}/setup-postgresql-tests.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py27-mysql]
basepython = python2.7
commands = {toxinidir}/setup-mysql-tests.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py33-postgresql]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
basepython = python3.4
commands = {toxinidir}/setup-postgresql-tests.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-postgresql]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
basepython = python3.4
commands = {toxinidir}/setup-postgresql-tests.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:venv]
commands = {toxinidir}/setup-postgresql-tests.sh {posargs}
[flake8]
exclude = .tox,doc,gnocchi/openstack/common
show-source = true
[testenv:genconfig]
commands = mkdir -p etc/gnocchi
oslo-config-generator --output-file etc/gnocchi/gnocchi.conf \
--namespace gnocchi \
--namespace oslo.db
[testenv:docs]
commands = doc8 --ignore-path doc/source/rest.rst doc/source
{toxinidir}/setup-postgresql-tests.sh python setup.py build_sphinx
[hacking]
import_exceptions =
gnocchi.openstack.common.gettextutils
ceilometer.i18n