c6de04dca9
The driver has been broken for a while, and there's no interest shown in fixing it. No known user of Gnocchi rely on it. Since there's little interest in using InfluxDB behind Gnocchi, let's drop that code altogether. Change-Id: I25d30a35e218ac3c6c531e3a943b1d2023978110
82 lines
2.8 KiB
INI
82 lines
2.8 KiB
INI
[tox]
|
|
minversion = 1.8
|
|
envlist = py{27,34},py{27,34}-{postgresql,mysql}{,-file,-swift,-ceph},pep8,bashate
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
sitepackages = False
|
|
passenv = LANG OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE GNOCCHI_TEST_*
|
|
deps = .[test]
|
|
py{27,34}-postgresql: .[postgresql,swift,ceph,file]
|
|
py{27,34}-mysql: .[mysql,swift,ceph,file]
|
|
setenv =
|
|
GNOCCHI_TEST_STORAGE_DRIVER=file
|
|
GNOCCHI_TEST_INDEXER_DRIVER=postgresql
|
|
GNOCCHI_TEST_STORAGE_DRIVERS=file swift ceph
|
|
GNOCCHI_TEST_INDEXER_DRIVERS=postgresql mysql
|
|
py{27,34}-{postgresql,mysql}-file: GNOCCHI_TEST_STORAGE_DRIVERS=file
|
|
py{27,34}-{postgresql,mysql}-swift: GNOCCHI_TEST_STORAGE_DRIVERS=swift
|
|
py{27,34}-{postgresql,mysql}-ceph: GNOCCHI_TEST_STORAGE_DRIVERS=ceph
|
|
py{27,34}-postgresql{,-file,-swift,-ceph}: GNOCCHI_TEST_INDEXER_DRIVERS=postgresql
|
|
py{27,34}-mysql{,-file,-swift,-ceph}: GNOCCHI_TEST_INDEXER_DRIVERS=mysql
|
|
|
|
commands =
|
|
doc8 --ignore-path doc/source/rest.rst doc/source
|
|
oslo-config-generator --config-file=gnocchi-config-generator.conf
|
|
{toxinidir}/run-tests.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-gate]
|
|
setenv = OS_TEST_PATH=gnocchi/tests/gabbi
|
|
GABBI_LIVE=1
|
|
passenv = {[testenv]passenv} GNOCCHI_SERVICE*
|
|
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]
|
|
deps = .[test,postgresql,file]
|
|
setenv = OS_TEST_PATH=gnocchi/tests/gabbi
|
|
basepython = python2.7
|
|
commands = {toxinidir}/setup-test-env.sh {toxinidir}/tools/pretty_tox.sh '{posargs}'
|
|
|
|
[testenv:py27-cover]
|
|
commands = {toxinidir}/setup-test-env.sh python setup.py testr --coverage --testr-args="{posargs}"
|
|
|
|
[testenv:venv]
|
|
# This is used by the doc job on the gate
|
|
deps = {[testenv:docs]deps}
|
|
commands = {toxinidir}/setup-test-env.sh {posargs}
|
|
|
|
[flake8]
|
|
exclude = .tox,.eggs,doc
|
|
show-source = true
|
|
|
|
[testenv:genconfig]
|
|
deps = .[mysql,postgresql,test,file,ceph,swift]
|
|
commands = oslo-config-generator --config-file=gnocchi-config-generator.conf
|
|
|
|
[testenv:docs]
|
|
# This does not work, see: https://bitbucket.org/hpk42/tox/issues/302
|
|
# deps = {[testenv]deps}
|
|
# .[doc]
|
|
deps = .[test,postgresql,file,doc]
|
|
setenv = GNOCCHI_TEST_STORAGE_DRIVER=file
|
|
GNOCCHI_TEST_INDEXER_DRIVER=postgresql
|
|
commands = doc8 --ignore-path doc/source/rest.rst doc/source
|
|
{toxinidir}/setup-test-env.sh python setup.py build_sphinx
|
|
|
|
[testenv:docs-gnocchi.xyz]
|
|
deps = .[file,postgresql,test,doc]
|
|
sphinx_rtd_theme
|
|
commands = {toxinidir}/setup-test-env.sh sphinx-build -D html_theme=sphinx_rtd_theme doc/source doc/build/html
|