Merge "Clean up tox.ini"
This commit is contained in:
commit
ef681f9962
38
tox.ini
38
tox.ini
|
@ -21,37 +21,18 @@ whitelist_externals = bash
|
|||
commands =
|
||||
find {toxinidir} -type f -name "*.pyc" -delete
|
||||
rm -Rf {toxinidir}/.testrepository/times.dbm
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
ostestr {posargs}
|
||||
|
||||
[testenv:py35]
|
||||
basepython = python3.5
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
ostestr {posargs}
|
||||
|
||||
[testenv:pypy]
|
||||
basepython = pypy
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
ostestr {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
coverage erase
|
||||
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monascaclient --omit=monascaclient/tests/*
|
||||
python setup.py test --coverage --testr-args='{posargs}' \
|
||||
--coverage-package-name=monascaclient --omit=monascaclient/tests/*
|
||||
coverage report
|
||||
|
||||
[testenv:debug]
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
oslo_debug_helper -t {env:OS_TEST_PATH} {posargs}
|
||||
commands = oslo_debug_helper -t {env:OS_TEST_PATH} {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
skip_install = True
|
||||
|
@ -64,21 +45,16 @@ commands =
|
|||
[testenv:flake8]
|
||||
skip_install = True
|
||||
usedevelop = False
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
flake8 monascaclient
|
||||
commands = flake8 monascaclient
|
||||
|
||||
[testenv:bandit]
|
||||
skip_install = True
|
||||
usedevelop = False
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
bandit -r monascaclient -n5 -x {env:OS_TEST_PATH}
|
||||
commands = bandit -r monascaclient -n5 -x {env:OS_TEST_PATH}
|
||||
|
||||
[testenv:docs]
|
||||
description = Builds full monascaclient documentation
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
{[testenv:devdocs]commands}
|
||||
{[testenv:releasenotes]commands}
|
||||
|
||||
|
@ -92,12 +68,12 @@ commands =
|
|||
description = Called from CI script to test and publish the Release Notes
|
||||
commands =
|
||||
rm -rf releasenotes/build
|
||||
sphinx-build -a -E -d {toxinidir}/releasenotes/build/doctrees -b html {toxinidir}/releasenotes/source {toxinidir}/releasenotes/build/html
|
||||
sphinx-build -a -E -d {toxinidir}/releasenotes/build/doctrees -b html \
|
||||
{toxinidir}/releasenotes/source {toxinidir}/releasenotes/build/html
|
||||
|
||||
[testenv:checkniceness]
|
||||
description = Validates (pep-like) documenation
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
doc8 --file-encoding utf-8 {toxinidir}/doc
|
||||
doc8 --file-encoding utf-8 {toxinidir}/releasenotes
|
||||
|
||||
|
|
Loading…
Reference in New Issue