ci: Use HTML report instead of PDF 69/24669/1
authorMartin Klozik <martinx.klozik@intel.com>
Tue, 22 Nov 2016 12:32:26 +0000 (12:32 +0000)
committerMartin Klozik <martinx.klozik@intel.com>
Tue, 22 Nov 2016 14:54:03 +0000 (14:54 +0000)
After the switch to opnfvdocs script for documentation
build, the pdf version of documentation is not generated.
HTML report should be stored inside artifactory instead.

JIRA: VSPERF-324

Change-Id: I42f918721264959ba7c94223204d83ce1fe8ad60
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: Bill Michalowski <bmichalo@redhat.com>
Reviewed-by: Antonio Fischetti <antonio.fischetti@intel.com>
Reviewed-by: Otto Sabart <osabart@redhat.com>
ci/build-vsperf.sh

index 16e4625..4d6acf7 100755 (executable)
@@ -67,7 +67,7 @@ TEST_REPORT_PARTIAL="*_test_report.rst"
 TEST_REPORT_DIR="${WORKSPACE}/docs/results"
 TEST_REPORT_INDEX="${TEST_REPORT_DIR}/index.rst"
 TEST_REPORT_LINK_OLD="https://wiki.opnfv.org/wiki/vsperf_results"
-TEST_REPORT_FILE="${WORKSPACE}/docs_output/results/results.pdf"
+TEST_REPORT_FILE="${WORKSPACE}/docs_output/results/index.html"
 TEST_REPORT_TARBALL="vswitchperf_logs_${DATE}.tar.gz"
 
 if [[ "x${BRANCH}" == "xmaster" ]]; then
@@ -239,9 +239,9 @@ function generate_report() {
     sed -ie 's,python ,python2 ,g' ./opnfvdocs/scripts/docs-build.sh
     OPNFVDOCS_DIR='./opnfvdocs' ./opnfvdocs/scripts/docs-build.sh &> /dev/null
 
-    # store PDF with test results into dedicated directory
+    # store HTML report with test results into dedicated directory
     if [ -f $TEST_REPORT_FILE ] ; then
-        cp -a $TEST_REPORT_FILE $TEST_REPORT_LOG_DIR
+        cp -ar $TEST_REPORT_FILE $(dirname $TEST_REPORT_FILE)/_static $TEST_REPORT_LOG_DIR
         echo "Final test report has been created."
     else
         echo "FAILURE: Generation of final test report has failed."