Enable Nose HTML output on unittest jobs.
Have nose output an HTML results file at the end of unittest builds. Also copy that results file to static.openstack.org. Change-Id: I46c487919e09d25eebf2858830bde080a4c8e4f4 Reviewed-on: https://review.openstack.org/11736 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
12accf97d9
commit
073a93ce31
@ -23,6 +23,7 @@ fi
|
||||
venv=py$version
|
||||
|
||||
export NOSE_WITH_XUNIT=1
|
||||
export NOSE_WITH_HTML_OUTPUT=1
|
||||
|
||||
tox -e$venv
|
||||
result=$?
|
||||
|
@ -112,7 +112,16 @@
|
||||
- python26
|
||||
|
||||
publishers:
|
||||
- console-log
|
||||
- scp:
|
||||
site: 'static.openstack.org'
|
||||
files:
|
||||
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
||||
source: 'results.html'
|
||||
keep-hierarchy: true
|
||||
copy-after-failure: true
|
||||
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
||||
copy-console: true
|
||||
copy-after-failure: true
|
||||
|
||||
# >= precise does not have python2.6
|
||||
node: oneiric
|
||||
@ -135,7 +144,7 @@
|
||||
artifactNumToKeep: -1
|
||||
|
||||
parameters:
|
||||
- label:
|
||||
- label:
|
||||
name: NODE_LABEL
|
||||
description: Label of node to use for this build
|
||||
default: '{node}'
|
||||
@ -148,7 +157,16 @@
|
||||
- python27
|
||||
|
||||
publishers:
|
||||
- console-log
|
||||
- scp:
|
||||
site: 'static.openstack.org'
|
||||
files:
|
||||
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
||||
source: 'results.html'
|
||||
keep-hierarchy: true
|
||||
copy-after-failure: true
|
||||
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
||||
copy-console: true
|
||||
copy-after-failure: true
|
||||
|
||||
node: '{node}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user