Give unit tests a second chance to pass
Change-Id: I495fb1ec2394130c7274368662b58212ca375854
This commit is contained in:
parent
0d37492c65
commit
976cc8f482
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,6 +18,7 @@ MANIFEST
|
|||||||
|
|
||||||
.testrepository/*
|
.testrepository/*
|
||||||
.stestr/*
|
.stestr/*
|
||||||
|
.noseids
|
||||||
subunit.log
|
subunit.log
|
||||||
test/probe/.noseids
|
test/probe/.noseids
|
||||||
RELEASENOTES.rst
|
RELEASENOTES.rst
|
||||||
|
16
tox.ini
16
tox.ini
@ -14,11 +14,13 @@ deps =
|
|||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
|
commands =
|
||||||
find {envdir} -type d -name "__pycache__" -delete
|
find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
|
||||||
nosetests {posargs:test/unit}
|
find {envdir} -type d -name "__pycache__" -delete
|
||||||
whitelist_externals = find
|
bash -ec "nosetests {posargs:test/unit} --with-id || nosetests --failed"
|
||||||
rm
|
allowlist_externals =
|
||||||
|
bash
|
||||||
|
find
|
||||||
passenv = SWIFT_* *_proxy
|
passenv = SWIFT_* *_proxy
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
@ -98,6 +100,8 @@ commands = sphinx-build -W -b html doc/source doc/build/html
|
|||||||
# the API Ref to docs.openstack.org.
|
# the API Ref to docs.openstack.org.
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
|
rm
|
||||||
commands =
|
commands =
|
||||||
rm -rf api-ref/build
|
rm -rf api-ref/build
|
||||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
||||||
@ -157,7 +161,7 @@ deps =
|
|||||||
[testenv:pdf-docs]
|
[testenv:pdf-docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = {[testenv:docs]deps}
|
deps = {[testenv:docs]deps}
|
||||||
whitelist_externals =
|
allowlist_externals =
|
||||||
make
|
make
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W -b latex doc/source doc/build/pdf
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user