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:
Clark Boylan 2012-08-21 11:57:19 -07:00 committed by Jenkins
parent 12accf97d9
commit 073a93ce31
2 changed files with 22 additions and 3 deletions

View File

@ -23,6 +23,7 @@ fi
venv=py$version
export NOSE_WITH_XUNIT=1
export NOSE_WITH_HTML_OUTPUT=1
tox -e$venv
result=$?

View File

@ -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}'