Upddate tox config
- Removes py3 env since we don't run unit tests - Update requirements to use stestr and coverage - Update tox.ini to use stestr Change-Id: Iecb18a3e616173217b7edb756dcaabd8df009629
This commit is contained in:
parent
600a327b0d
commit
41a016b5ae
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=${OS_TEST_PATH:-./ironic_tempest_plugin}
|
||||
top_dir=./
|
@ -4,6 +4,9 @@
|
||||
|
||||
hacking!=0.13.0,<0.14,>=0.12.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
13
tox.ini
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user