monitorstack/tox.ini
Kevin Carter 034228e754
Update monitorstack to use updated openstacksdk and es
This change updates the functions so that they work with the most up to date
OpenStack SDK, and adds an elasticsearch output format.

Tests have been udpated to pass newer versions of flake8 and py3

Zuul project config has been added

Change-Id: If46d3fb8e2b2e4aa5e21bf7da470945b05d216cf
Signed-off-by: cloudnull <kevin@cloudnull.com>
2019-02-17 09:27:36 -06:00

80 lines
1.4 KiB
INI

[tox]
envlist = {pypy,pep8,py27,py3}
[testenv]
usedevelop = True
deps =
coverage
-rrequirements.txt
-rtest-requirements.txt
passenv =
HOME
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
whitelist_externals =
bash
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
[testenv:coverage]
commands =
coverage run -m pytest --capture=no --strict {posargs}
coverage report -m --omit="*/test*" --fail-under=90
# environment used by the -infra templated docs job
[testenv:venv]
commands =
{posargs}
[testenv:docs]
commands=
bash -c "rm -rf doc/build"
doc8 doc
python setup.py build_sphinx
[doc8]
# Settings for doc8:
extensions = .rst
[testenv:releasenotes]
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:linters]
deps =
{[testenv:pep8]deps}
commands =
{[testenv:pep8]commands}
[testenv:integration]
commands =
coverage run -m pytest --capture=no --strict "tests/int"
[testenv:unit]
commands =
coverage run -m pytest --capture=no --strict "tests/unit"
[testenv:pep8]
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 .
[testenv:py3pep8]
basepython = python3
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 .
[flake8]
exclude = .tox,*.egg,.git,_build,docs-rst