* @license MIT License, see LICENSE.txt * @link http://svnweb.mageia.org/svn/soft/dashboard/ */ /** */ class Report_Box_CauldronISOBuild extends Report_Box { /** */ var $title = "Cauldron ISO Build/QA/Pub"; /** */ function _get_var_definitions() { return array( ); } /** */ function _get_links() { return 'View bcd site'; } function render() { $obj = array( array( 'ts' => gmdate('c'), 'type' => 'info', 'value' => 'Built packages tree is not ready – no build planned.' ), array( 'ts' => gmdate('c') - 5, 'type' => 'info', 'value' => 'Next build 1a1 should start in about 12 hours (at 2011-03-15 20:23:33), with a new context.' ), array( 'ts' => gmdate('c') - 10, 'type' => 'report', 'build' => '1a0', 'contextDiffLink' => '', 'started_at' => '2011-03-14 23:03:15', 'products' => array( array( 'name' => 'DVD i586', 'build' => array(true, 'url'), 'tests' => array(false, 'url'), 'iso' => 'cauldron-2-dvd-i586-1a0-qafail.iso' ), array( 'name' => 'DVD x86_64', 'build' => array(true, 'url'), 'tests' => array(true, 'url'), 'iso' => 'cauldron-2-dvd-i586-1a0-qapass.iso' ), array( 'name' => 'CD dual', 'build' => array(false, 'url'), 'tests' => null, 'iso' => null ), array( 'name' => 'netinstall', 'build' => 'pending' ) ) ) ); $values = array(); foreach ($obj as $item) { if ($item['type'] == 'info') { $values[] = array( 't' => sprintf('
%s
', $item['value']), 'c' => null ); } elseif ($item['type'] == 'report') { $lis = ''; foreach ($item['products'] as $p) { $st = $item['build'][0] ? 'ok' : 'failed'; $lis .= <<Item | Build | Tests | Download |
---|---|---|---|
DVD i586 | OK (log) | OK (log) | cauldron-2-1a0-dvd-i586-ok.iso |
DVD x86_64 | OK (log) | FAILED (log) | cauldron-2-1a0-dvd-x86_64-qafail.iso |
CD dual | FAILED (log) | ||
netinstall | OK (log) | OK (log) | cauldron-2-1a0-netinstall-ok.iso |