wok view tazbb/stuff/web/index.php @ rev 8692

Switch back to mercurial, home sweet home :)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Feb 17 19:06:05 2011 +0100 (2011-02-17)
parents e123f30cb507
children c3d23bc104d3
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>
23 <body>
25 <!-- Header -->
26 <div id="header">
27 <!-- Access -->
28 <div id="access">
29 <a href="/<?php if ($version != 'stable')
30 echo "?stable"; ?>" title="Slitaz <?php
31 echo $notversion ?> packages"><?php echo $notversion ?></a>
32 </div>
33 <a href="http://bb.slitaz.org/"><img id="logo"
34 src="pics/website/logo.png"
35 title="bb.slitaz.org" alt="bb.slitaz.org" /></a>
36 <p id="titre">#!/Build/Bot/<?php echo $version; ?></p>
37 </div>
39 <!-- Content -->
40 <div id="content-full">
42 <!-- Block begin -->
43 <div class="block">
44 <!-- Nav block begin -->
45 <div id="block_nav">
46 <h3><img src="pics/website/development.png" alt="devel.png" />Developers</h3>
47 <ul>
48 <li><a href="http://www.slitaz.org/en/devel/">Website/devel</a></li>
49 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
50 <li><a href="http://hg.slitaz.org/">Mercurial Repos</a></li>
51 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
52 <li><a href="http://scn.slitaz.org/">Community Network</a></li>
53 </ul>
54 <!-- Nav block end -->
55 </div>
56 <!-- Top block begin -->
57 <div id="block_top">
58 <h1>Build Bot</h1>
59 <p>
60 Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
61 Build Bot, it automatically cooks and tests packages commited in
62 the wok. SliTaz <a href="http://pkgs.slitaz.org/">packages</a> are
63 cooked on the project main server: code name
64 <a href="http://tank.slitaz.org">Tank</a>. This web interface gives
65 the current status of the build bot and the last report
66 about any packages modified by the SliTaz contributors in
67 the Mercurial repositories, aka
68 <a href="http://hg.slitaz.org/">Hg repos</a>.
69 </p>
70 <!-- Top block end -->
71 </div>
72 <!-- Block end -->
73 </div>
75 <h2>Cooklog</h2>
77 <p>
78 <form action="log.php" method="get">
79 <?php
80 if ($version == 'stable')
81 echo '<input type="hidden" name="stable" value="1" />';
82 ?> Show pkg log: <input type="text" name="package" />
83 <!-- <input type="submit" value="Show" /> -->
84 </form>
85 </p>
87 <h3>Summary</h3>
88 <pre class="package">
89 <?php
91 // Check curent status (update in real time) and display summary.
93 if (file_exists($lockfile)) {
94 echo "Status : Running ";
95 include("$db_dir/running");
96 }
97 else {
98 echo "Status : Not currently running\n";
99 }
100 include("$db_dir/summary");
102 ?>
103 </pre>
105 <h3>Report</h3>
106 <pre class="package">
107 <?php
108 include("$db_dir/report");
109 ?>
110 </pre>
112 <h3>Genpkglist</h3>
113 <pre class="package">
114 <?php
115 include("$db_dir/genpkglist");
116 ?>
117 </pre>
119 <h3>Cooklist</h3>
120 <pre class="package">
121 <?php
122 include("$db_dir/cooklist");
123 ?>
124 </pre>
126 <h3>Unbuilt</h3>
127 <pre class="package">
128 <?php
129 include("$db_dir/unbuilt");
130 ?>
131 </pre>
133 <h3>Blocked</h3>
134 <pre class="package">
135 <?php
136 include("$db_dir/blocked.urls");
137 ?>
138 </pre>
140 <h3>Corrupted</h3>
141 <pre class="package">
142 <?php
143 include("$db_dir/corrupted");
144 ?>
145 </pre>
147 <h3>Last cooked packages</h3>
148 <pre class="package">
149 <?php
150 system("cd $packages && ls -1t *.tazpkg | head -20 | \
151 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
152 cut -d. -f1); echo ' '\$file; done"); ?>
153 </pre>
155 <h3>Last removed packages</h3>
156 <pre class="package">
157 <?php
158 include("$db_dir/removed");
159 ?>
160 </pre>
162 <h3>Last cooked flavors</h3>
163 <pre class="package">
164 <?php
165 system("cd $packages && ls -1t *.flavor | head -20 | \
166 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
167 cut -d. -f1); echo ' '\$file; done"); ?>
168 </pre>
170 <!-- End of content -->
171 </div>
173 <!-- Footer -->
174 <div id="footer">
175 <div class="right_box">
176 <h4>SliTaz Network</h4>
177 <ul>
178 <li><a href="http://www.slitaz.org/">Main Website</a></li>
179 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
180 <li><a href="http://forum.slitaz.org/">Support Forum</a></li>
181 <li><a href="http://scn.slitaz.org/">Community Network</a></li>
182 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
183 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
184 </ul>
185 </div>
186 <h4>SliTaz Website</h4>
187 <ul>
188 <li><a href="#header">Top of the page</a></li>
189 <li>Copyright &copy; <span class="year"></span>
190 <a href="http://www.slitaz.org/">SliTaz</a></li>
191 <li><a href="http://www.slitaz.org/en/about/">About the project</a></li>
192 <li><a href="http://www.slitaz.org/netmap.php">Network Map</a></li>
193 <li>Page modified the <?php echo (date( "d M Y", getlastmod())); ?></li>
194 <li><a href="http://validator.w3.org/check?uri=referer"><img
195 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
196 title="Code validé XHTML 1.0"
197 style="width: 80px; height: 15px; vertical-align: middle;" /></a></li>
198 </ul>
199 </div>
201 </body>
202 </html>