Fix coverage job
diff-cover compares HEAD with origin/master branch by default. Zuul uses git operations to mirror the local prepared git repos to the remote nodes. And all branch names are without 'origin', so need to specify the branch name for coverage job. Change-Id: Iaba21de10f6cf705e110cd60cb004502bb37515d
This commit is contained in:
parent
48f50a0868
commit
c93fc17317
2
tox.ini
2
tox.ini
@ -26,7 +26,7 @@ commands =
|
||||
coverage erase
|
||||
python setup.py testr --coverage --testr-args='{posargs}'
|
||||
coverage xml
|
||||
diff-cover --fail-under 100 coverage.xml
|
||||
diff-cover --fail-under 100 --compare-branch master coverage.xml
|
||||
|
||||
[testenv:releasenotes]
|
||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
Loading…
x
Reference in New Issue
Block a user