cvs: php-gcov-web /cron check_parameters.php cron.php
| From: | Nuno Lopes | Date: | Tue, 30 Jan 2007 18:21:45 +0000 |
| Subject: | cvs: php-gcov-web /cron check_parameters.php cron.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33982@lists.php.net to get a copy of this message | ||
nlopess Tue Jan 30 18:21:45 2007 UTC
Modified files:
/php-gcov-web/cron cron.php check_parameters.php
Log:
make graphs even if the build fails on master
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/cron.php?r1=1.8&r2=1.9&diff_format=u
Index: php-gcov-web/cron/cron.php
diff -u php-gcov-web/cron/cron.php:1.8 php-gcov-web/cron/cron.php:1.9
--- php-gcov-web/cron/cron.php:1.8 Tue Jan 30 18:15:49 2007
+++ php-gcov-web/cron/cron.php Tue Jan 30 18:21:44 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cron.php,v 1.8 2007/01/30 18:15:49 nlopess Exp $ */
+/* $Id: cron.php,v 1.9 2007/01/30 18:21:44 nlopess Exp $ */
if ($argc != 7)
@@ -60,7 +60,6 @@
require $workdir.'/config.php';
require $workdir.'/system.php';
require $workdir.'/compile_results.php';
-require $workdir.'/check_parameters.php';
// This section is required for either system configuration
@@ -90,6 +89,8 @@
// Start Master Only Section //
if($is_master)
{
+ require $workdir.'/check_parameters.php';
+
// Get version ID for the current PHP version
try
{
@@ -132,14 +133,12 @@
$stmt->bindParam(':build_os_info', $osinfo);
$stmt->bindParam(':build_compiler_info', $compilerinfo);
$stmt->execute();
-
- $stmt = null;
+
+ require $workdir.'/graph.php';
// Graphs will be generated and the database updated with the latest build information
if($makestatus == 'pass')
{
- require $workdir.'/graph.php';
-
// Do SQL updates for the specific PHP version
$sql = 'UPDATE versions SET version_last_build_time=?, version_last_attempted_build_date=?,
version_last_successful_build_date=? WHERE version_id=?';
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/check_parameters.php?r1=1.3&r2=1.4&diff_format=u
Index: php-gcov-web/cron/check_parameters.php
diff -u php-gcov-web/cron/check_parameters.php:1.3 php-gcov-web/cron/check_parameters.php:1.4
--- php-gcov-web/cron/check_parameters.php:1.3 Thu Dec 21 23:19:03 2006
+++ php-gcov-web/cron/check_parameters.php Tue Jan 30 18:21:44 2007
@@ -3,7 +3,7 @@
+----------------------------------------------------------------------+
| PHP QA GCOV Website |
+----------------------------------------------------------------------+
- | Copyright (c) 2005-2006 The PHP Group |
+ | Copyright (c) 2005-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: check_parameters.php,v 1.3 2006/12/21 23:19:03 nlopess Exp $ */
+/* $Id: check_parameters.php,v 1.4 2007/01/30 18:21:44 nlopess Exp $ */
// check for zend_parse_parameters*() and related functions usage
// TODO: add support for zend_get_parameters*()
@@ -341,14 +341,10 @@
}
-// this script produces the same results on all machines, so don't run it on non-master
servers
-if ($is_master) {
+// run the code
+recurse($phpdir);
- recurse($phpdir);
-
- // sort by filename
- ksort($check_params);
-
- file_put_contents("$outdir/check_params.inc", serialize($check_params));
-}
+// sort by filename
+ksort($check_params);
+file_put_contents("$outdir/check_params.inc", serialize($check_params));