From 847c1216d0bf2534d5871ca4e47eb40df211d90f Mon Sep 17 00:00:00 2001
From: Zack Galbreath <zack.galbreath@kitware.com>
Date: Thu, 19 Apr 2018 15:21:23 -0400
Subject: Generate CDash reports for build/install step

---
 templates/reports/cdash/Build.xml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 templates/reports/cdash/Build.xml

(limited to 'templates/reports')

diff --git a/templates/reports/cdash/Build.xml b/templates/reports/cdash/Build.xml
new file mode 100644
index 0000000000..1d184349b3
--- /dev/null
+++ b/templates/reports/cdash/Build.xml
@@ -0,0 +1,27 @@
+  <Build>
+    <StartBuildTime>{{ build.starttime }}</StartBuildTime>
+    <BuildCommand>{{ install_command }}</BuildCommand>
+{% for warning in build.warnings %}
+    <Warning>
+      <BuildLogLine>{{ warning.line_no }}</BuildLogLine>
+      <Text>{{ warning.text }}</Text>
+      <SourceFile>{{ warning.source_file }}</SourceFile>
+      <SourceLineNumber>{{ warning.source_line_no }}</SourceLineNumber>
+      <PreContext>{{ warning.pre_context }}</PreContext>
+      <PostContext>{{ warning.post_context }}</PostContext>
+    </Warning>
+{% endfor %}
+{% for error in build.errors %}
+    <Error>
+      <BuildLogLine>{{ error.line_no }}</BuildLogLine>
+      <Text>{{ error.text }}</Text>
+      <SourceFile>{{ error.source_file }}</SourceFile>
+      <SourceLineNumber>{{ error.source_line_no }}</SourceLineNumber>
+      <PreContext>{{ error.pre_context }}</PreContext>
+      <PostContext>{{ error.post_context }}</PostContext>
+    </Error>
+{% endfor %}
+    <EndBuildTime>{{ build.endtime }}</EndBuildTime>
+    <ElapsedMinutes>0</ElapsedMinutes>
+  </Build>
+</Site>
-- 
cgit v1.2.3-70-g09d2