diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69f0224bb0d664256e7d0800ff6cb6b6996312c8..1f68a3861b8a6e1cc5ee744cc16bc7bc43f9ab8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -124,6 +124,13 @@ summary: - "backgrounds:results" script: - collect_benchmarks.py + - | + cat templates/report_header.tex > report.tex ; + find results -name "*.png" -exec echo "\result{{}}" \; >> report.tex ; + cat templates/report_footer.tex >> report.tex ; + pdflatex report.tex ; + pdflatex report.tex ; + mv report.pdf results artifacts: paths: - results/* diff --git a/templates/report_footer.tex b/templates/report_footer.tex new file mode 100644 index 0000000000000000000000000000000000000000..6b47932f52ba844f510fab0477ab6ec38f134315 --- /dev/null +++ b/templates/report_footer.tex @@ -0,0 +1 @@ +\end{document} diff --git a/templates/report_header.tex b/templates/report_header.tex new file mode 100644 index 0000000000000000000000000000000000000000..23c8bcc53ddb810476d52ee497e36a0516a4c665 --- /dev/null +++ b/templates/report_header.tex @@ -0,0 +1,17 @@ +\documentclass[11pt]{book} + +\usepackage[margin=0.5in]{geometry} +\usepackage{graphicx} + +\title{Physics Benchmarks} +\author{EICweb} +\date{\today} + +\newcommand{\result}[1] { + \includegraphics[width=0.8\textwidth]{#1} + \\ +} + +\begin{document} +\maketitle +\tableofcontents