wok-current view tazbb/stuff/web/index.php @ rev 6341

Up: printoxx 2.8.1
author Antoine Bodin <gokhlayeh@mailoo.org>
date Sun Sep 19 13:57:16 2010 +0200 (2010-09-19)
parents 8e71b2f70bb0
children 40dc53a88848
line source
1 <?php
2 $version='cooking';
3 $notversion='stable';
4 $wok='wok';
5 if (isset($_GET['stable'])) {
6 $version='stable';
7 $notversion='cooking';
8 $wok='wok-stable';
9 }
10 include("conf.php");
11 ?>
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
15 <head>
16 <title>SliTaz Build Bot</title>
17 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
18 <meta name="description" content="Tazbb web interface" />
19 <meta name="robots" content="index nofollow" />
20 <link rel="shortcut icon" href="favicon.ico" />
21 <link rel="stylesheet" type="text/css" href="slitaz.css" />
22 </head>
24 <body bgcolor="#ffffff">
25 <!-- Header -->
26 <div id="header">
27 <a name="top"></a>
28 <!-- Access -->
29 <div id="access">
30 <a href="/<?php if ($version != 'stable')
31 echo "?stable"; ?>" title="Slitaz <?php
32 echo $notversion ?> packages"><?php echo $notversion ?></a>
33 </div>
34 <a href="http://bb.slitaz.org/"><img id="logo"
35 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
36 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
37 <p id="titre">#!/bb/packages/<?php echo $version; ?></p>
38 </div>
40 <!-- Navigation menu -->
41 <div id="nav">
43 <div class="nav_box">
44 <h4>SliTaz Network</h4>
45 <ul>
46 <li><a href="http://www.slitaz.org/">Main Website</a></li>
47 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
48 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
49 <li><a href="http://labs.slitaz.org/">SliTaz Labs</a></li>
50 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
51 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
52 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
53 </ul>
54 </div>
56 <div class="nav_box">
57 <h4>SliTaz Developers</h4>
58 <ul>
59 <li><a href="http://hg.slitaz.org/">Hg Repositories</a></li>
60 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
61 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
62 <li><a href="http://labs.slitaz.org/wiki/distro">Distro Wiki</a></li>
64 </ul>
65 </div>
67 <!-- End navigation menu -->
68 </div>
70 <!-- Content top. -->
71 <div id="content_top">
72 <div class="top_left"></div>
73 <div class="top_right"></div>
74 </div>
76 <!-- Content -->
77 <div id="content">
79 <h1><font color="#3E1220">Build Bot</font></h1>
80 <h2><font color="#DF8F06">/usr/bin/tazbb</font></h2>
82 <p>
83 Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
84 it automatically cooks and tests packages commited in the wok. SliTaz
85 <a href="http://pkgs.slitaz.org/">packages</a> are cooked on the project
86 main server: code name <a href="http://tank.slitaz.org">Tank</a>. This
87 web interface gives the current status of the build bot and the last report
88 about any packages modified by the SliTaz contributors in the Mercurial
89 repositories, aka <a href="http://hg.slitaz.org/">Hg repos</a>.
90 </p>
92 <form action="log.php" method="get">
93 <?php
94 if ($version == 'stable')
95 echo '<input type="hidden" name="stable" value="1" />';
96 ?> Show cooklog: <input type="text" name="package" />
97 <!-- <input type="submit" value="Show" /> -->
98 </form>
100 <h3>Summary</h3>
101 <pre class="package">
102 <?php
104 // Check curent status (update in real time) and display summary.
106 if (file_exists($lockfile)) {
107 echo "Status : Running ";
108 include("$db_dir/running");
109 }
110 else {
111 echo "Status : Not currently running\n";
112 }
113 include("$db_dir/summary");
115 ?>
116 </pre>
118 <h3>Report</h3>
119 <pre class="package">
120 <?php
121 include("$db_dir/report");
122 ?>
123 </pre>
125 <h3>Cooklist</h3>
126 <pre class="package">
127 <?php
128 include("$db_dir/cooklist");
129 ?>
130 </pre>
132 <h3>Unbuilt</h3>
133 <pre class="package">
134 <?php
135 include("$db_dir/unbuilt");
136 ?>
137 </pre>
139 <h3>Blocked</h3>
140 <pre class="package">
141 <?php
142 include("$db_dir/blocked.urls");
143 ?>
144 </pre>
146 <h3>Corrupted</h3>
147 <pre class="package">
148 <?php
149 include("$db_dir/corrupted");
150 ?>
151 </pre>
153 <h3>Last cooked packages</h3>
154 <pre class="package">
155 <?php
156 system("cd $packages && ls -1t *.tazpkg | head -20 | \
157 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
158 cut -d. -f1); echo ' '\$file; done"); ?>
159 </pre>
161 <h3>Last removed packages</h3>
162 <pre class="package">
163 <?php
164 include("$db_dir/removed");
165 ?>
166 </pre>
168 <h3>Last cooked flavors</h3>
169 <pre class="package">
170 <?php
171 system("cd $packages && ls -1t *.flavor | head -20 | \
172 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
173 cut -d. -f1); echo ' '\$file; done"); ?>
174 </pre>
176 <!-- End of content with round corner -->
177 </div>
179 <!-- Start of footer and copy notice -->
180 <div id="copy">
181 <p>
182 Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
183 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
184 </p>
185 <!-- End of copy -->
186 </div>
188 <!-- Bottom and logo's -->
189 <div id="bottom">
190 <p>
191 <a href="http://validator.w3.org/check?uri=referer"><img
192 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
193 title="Code validé XHTML 1.0"
194 style="width: 80px; height: 15px;" /></a>
195 </p>
196 </div>
198 </body>
199 </html>