taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 80272a1c86868594e22146c0106e7bb8f5e776f3
parent c0da0629463a820321f4ddbb5a8490339fd451bb
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu, 29 Nov 2018 15:08:18 +0100

Auditor-reports generation.

Still on polishing/debugging the script.

Diffstat:
Mbuildbot/make_auditor_reports.sh | 16+++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh @@ -21,19 +21,29 @@ fi DATE=$(date +%Y-%m-%d) REPORT_FILE=/home/${ACTIVE_COLOR}/audit_report.${DATE} +WIRE_REPORT_FILE=/home/${ACTIVE_COLOR}/wire_audit_report.${DATE} SUDO_COLOR="sudo -u ${ACTIVE_COLOR}" JINJA_TEMPLATE="auditor-report.tex.j2" REPORTS_DIRECTORY="/home/${TALER_DEPLOYMENT}/reports" ${SUDO_COLOR} sh -c "taler-auditor > ${REPORT_FILE}.txt" +${SUDO_COLOR} sh -c "taler-wire-auditor > ${WIRE_REPORT_FILE}.txt" # 2 convert them into PDF. # 3 put them into nginx-served directory. -${SUDO_COLOR} sh -c \ +if ! ${SUDO_COLOR} sh -c \ "./render_auditor_reports.py \ - ${REPORT_FILE}.txt > ${REPORT_FILE}.tex \ - < ${JINJA_TEMPLATE}" + ${REPORT_FILE}.txt \ + ${WIRE_REPORT_FILE}.txt \ + > ${REPORT_FILE}.tex \ + < ${JINJA_TEMPLATE}"; then +echo +echo "Could not generate the TEX template (from Jinja)." +exit 1 +fi + +# POLISHING ENDS HERE. ${SUDO_COLOR} pdflatex \ --output-directory $REPORTS_DIRECTORY \