Merge "Upddate tox config"

This commit is contained in:
Zuul 2020-04-03 11:07:36 +00:00 committed by Gerrit Code Review
commit 8ac8b7edf4
4 changed files with 18 additions and 4 deletions

3
.gitignore vendored
View File

@ -29,6 +29,7 @@ cover/
nosetests.xml
.testrepository
.venv
.stestr/
# Translations
*.mo
@ -55,4 +56,4 @@ ChangeLog
.*sw?
# Files created by releasenotes build
releasenotes/build
releasenotes/build

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./ironic_tempest_plugin}
top_dir=./

View File

@ -4,6 +4,9 @@
hacking>=3.0.0,<3.1.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.20.0 # Apache-2.0

13
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 3.1.0
envlist = py3,pep8
envlist = pep8
skipsdist = True
ignore_basepython_conflict=true
@ -13,7 +13,7 @@ setenv =
PYTHONWARNINGS=default::DeprecationWarning
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}
[testenv:pep8]
commands = flake8 {posargs}
@ -22,7 +22,14 @@ commands = flake8 {posargs}
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --testr-args='{posargs}'
setenv =
{[testenv]setenv}
PYTHON=coverage run --source ironic_tempest_plugin --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage htlm -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = python setup.py build_sphinx