Add status page for tests

This commit is contained in:
southerntofu 2020-09-23 20:58:30 +02:00
parent c90f130330
commit 142bbf7748
5 changed files with 40 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.*.sw*
public
tests

View File

@ -10,3 +10,7 @@
---
forgehook
---
[Status](@/status.md)

View File

@ -10,3 +10,7 @@
---
forgehook
---
[Status](@/status.md)

4
content/status.md Normal file
View File

@ -0,0 +1,4 @@
+++
title="Tests status"
template="status.html"
+++

27
templates/status.html Normal file
View File

@ -0,0 +1,27 @@
{% extends "index.html" %}
{% block main %}
<h2>forgebuild</h2>
{% set bash_data = load_data(path="tests/forgebuild.sh/results.toml") %}
<table>
<tr>
<th>Test</th>
<th>forgebuild.sh</th>
<th>forgebuild.rs</th>
</tr>
<tr>
<td>git</td>
<td>{{ bash_data.git }}</td>
<td></td>
</tr>
<tr>
<td>mercurial</td>
<td>{{ bash_data.mercurial }}</td>
<td></td>
</tr>
<tr>
<td>sourceless</td>
<td>{{ bash_data.sourceless }}</td>
<td></td>
</tr>
</table>
{% endblock main %}