Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 117 lines (105 sloc) 3.377 kb
820185a Tadeusz Sośnierz Add an HTML formatter
authored
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6 <title>Emmentaler</title>
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 <style type="text/css">
9 .implemented, .implemented a {
10 background-color: #3c3;
11 color: white;
12 }
13 .partial , .partial a {
14 background-color: #fb4;
15 color: #333;
16 }
17 .missing , .missing a {
18 background-color: #f55;
19 color: white;
20 }
21 .unknown , .unknown a {
22 background-color: #ccc;
23 color: white;
24 }
25 .implemented, .partial, .missing, .unknown {
26 text-align: center;
27 width: 150px;
28 font-weight: bold;
29 font-family: monospace;
30 font-size: 18px;
31 -moz-border-radius: 15px;
32 border-radius: 15px;
33 }
34 .subsection {
35 padding-top: 1em;
36 text-align: left;
37 }
38 .minor {
39 font-size: smaller;
40 font-style: italic;
41 }
42 .footnote_link {
43 font-size: 70%;
44 position: absolute;
45 }
46 :target {
47 background-color: #FFFF66;
48 }
49 </style>
50
51 </head>
52 <body>
53 <img src="http://perl6.org/camelia-logo-small.png" alt="Camelia, the Perl 6 bug" align="right">
54
55 <h1>Emmentaler</h1>
56
2cb8081 added legend
John Gabriele authored
57 <h2>Legend</h2>
7a267f3 changed the legend, made it a <dl> to make it a bit taller, thus more ro...
John Gabriele authored
58 <dl>
59 <dt><div class="implemented">+</div></dt><dd>☺</dd>
60 <dt><div class="missing">-</div></dt><dd>☹</dd>
61 <dt><div class="unknown">?</div></dt><dd>Unknown</dd>
62 </dl>
2cb8081 added legend
John Gabriele authored
63
820185a Tadeusz Sośnierz Add an HTML formatter
authored
64 <h2>Modules (on Rakudo)</h2>
2cb8081 added legend
John Gabriele authored
65
820185a Tadeusz Sośnierz Add an HTML formatter
authored
66 <table>
67 <thead>
68 <tr>
69 <th>Module</th>
70 <th>Prereqs ok</th>
71 <th>Builds</th>
72 <th>Tests</th>
73 <th>Additional information</th>
74 </tr>
75 </thead>
76 <tbody>
77
2411e04 Tadeusz Sośnierz Sort modules by workingness
authored
78 % my ($results, $list) = @_;
a3995a9 Tadeusz Sośnierz Include some more statistics
authored
79 % my ($ok, $fail, $total);
820185a Tadeusz Sośnierz Add an HTML formatter
authored
80 % my $stats = delete $results->{_statistics};
2411e04 Tadeusz Sośnierz Sort modules by workingness
authored
81 % for my $module (@$list) {
820185a Tadeusz Sośnierz Add an HTML formatter
authored
82 <tr><td style="border-bottom:1px dotted #98CAEB">
83 <a href="#"><%= $module %></a>
84 </td>
85 % my %res = %{$results->{$module}};
86 % for my $stage (qw(prereq build test)) {
87 % if (defined $res{$stage}) {
88 % if ($res{$stage} == 1) {
89 <td><div class="implemented">+</div></td>
90 % } else {
91 <td><div class="missing">-</div></td>
92 % }
93 % } else {
94 <td><div class="unknown">?</div></td>
95 % }
96 % }
a3995a9 Tadeusz Sośnierz Include some more statistics
authored
97 % (exists $res{'test'} and $res{'test'} == 1) ? ($ok++) : ($fail++);
98 % $total++;
820185a Tadeusz Sośnierz Add an HTML formatter
authored
99 <td><%= $res{description} // '' %></td>
100 </tr>
101 % }
102
103 </tbody>
104 </table>
105
106 % my $minutes = int($stats->{runtime} / 60);
107 % my $seconds = $stats->{runtime} % 60;
108
109 <p>Results from <%= $stats->{datetime} %>
110 on <%= $stats->{compiler} %> <%= $stats->{version} %></p>
111 <p>Testing took <%= $minutes %> minutes and <%= $seconds %> seconds</p>
a3995a9 Tadeusz Sośnierz Include some more statistics
authored
112 <p><%= $ok %> modules ok, <%= $fail %> not ok (<%= $total %> total)</p>
4da24c0 Tadeusz Sośnierz Link to emmentaler repo on the generated page
authored
113 <p>Generated using <a href="https://github.com/tadzik/emmentaler">emmentaler</a></p>
820185a Tadeusz Sośnierz Add an HTML formatter
authored
114
115 </body>
116 </html>
Something went wrong with that request. Please try again.