This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
118 lines (96 loc) · 3.92 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[tox]
envlist = py27-postgresql-file,py27,py34,pypy,pep8,bashate
[testenv]
usedevelop = True
sitepackages = False
passenv = LANG
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U --allow-external ceilometer --allow-insecure ceilometer {opts} {packages}
commands = {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:bashate]
deps = bashate
commands = bashate -v devstack/plugin.sh devstack/gate/gate_hook.sh devstack/gate/post_test_hook.sh
whitelist_externals = bash
[testenv:pep8]
deps = hacking>=0.10,<0.11
commands = flake8
[testenv:py27]
# NOTE(jd): doc8 does not work with Python 3
commands =
doc8 --ignore-path doc/source/rest.rst doc/source
{toxinidir}/run-tests.sh "postgresql mysql" "file swift ceph" {posargs}
{toxinidir}/generate-config-file.sh
[testenv:py34]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
commands = {toxinidir}/run-tests.sh postgresql "file swift ceph" {posargs}
[testenv:py27-postgresql-file]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
basepython = python2.7
commands = {toxinidir}/setup-postgresql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-mysql-file]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
basepython = python2.7
commands = {toxinidir}/setup-mysql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py34-postgresql-file]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
basepython = python3.4
commands = {toxinidir}/setup-postgresql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-postgresql-swift]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=swift
basepython = python2.7
commands = {toxinidir}/setup-postgresql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-mysql-swift]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=swift
basepython = python2.7
commands = {toxinidir}/setup-mysql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py34-postgresql-swift]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
setenv = GNOCCHI_TEST_STORAGE_DRIVER=swift
basepython = python3.4
commands = {toxinidir}/setup-postgresql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-postgresql-ceph]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=ceph
basepython = python2.7
commands = {toxinidir}/setup-postgresql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-mysql-ceph]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=ceph
basepython = python2.7
commands = {toxinidir}/setup-mysql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py34-postgresql-ceph]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
setenv = GNOCCHI_TEST_STORAGE_DRIVER=ceph
basepython = python3.4
commands = {toxinidir}/setup-postgresql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-gate]
setenv = OS_TEST_PATH=gnocchi/tests/gabbi
sitepackages = True
basepython = python2.7
commands = {toxinidir}/tools/pretty_tox.sh '{posargs}'
# This target provides a shortcut to running just the gabbi tests.
[testenv:py27-gabbi]
setenv = OS_TEST_PATH=gnocchi/tests/gabbi
basepython = python2.7
commands = {toxinidir}/setup-mysql-tests.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
[testenv:py27-cover]
commands = {toxinidir}/setup-mysql-tests.sh python setup.py testr --coverage --testr-args="{posargs}"
[testenv:venv]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
commands = {toxinidir}/setup-postgresql-tests.sh {posargs}
[flake8]
exclude = .tox,doc,gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py
show-source = true
[testenv:genconfig]
commands = {toxinidir}/generate-config-file.sh
[testenv:docs]
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
commands = doc8 --ignore-path doc/source/rest.rst doc/source
{toxinidir}/setup-postgresql-tests.sh python setup.py build_sphinx
[hacking]
import_exceptions =
ceilometer.i18n