Commit: 7e81f15115d24e62301c563890b382599dd6bfdc Author: v-maf...@microsoft.com <v-maf...@microsoft.com> Thu, 20 Mar 2014 12:48:39 -0700 Parents: 8b2dffc556d4d33f4ef84805506f5c6aad8d4600 Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=7e81f15115d24e62301c563890b382599dd6bfdc Log: Publish PFTT Reports (2) Changed paths: M .gitignore M build.php M list_builds.php M pftt.php Diff: diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 0c0821b..4daca48 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -reports/db/*.sqlite -reports/db/*.cache -pulls/config.php +reports/db/*.sqlite +reports/db/*.cache +pftt-reports/* +pulls/config.php diff --git a/build.php b/build.php index 515d174..0456a34 100755 --- a/build.php +++ b/build.php @@ -42,7 +42,8 @@ common_header(); <td><strong>PHPT</strong> <a href="howto_phpt.htm" target="_blank">How to</a></td> </tr> <?php - + var_dump(BASE_REPORT_DIR); + var_dump(scandir(BASE_REPORT_DIR."/$branch/$revision")); foreach ( scandir(BASE_REPORT_DIR."/$branch/$revision") as $report ) { if (substr($report, 0, 4)=="PHPT" && is_file(BASE_REPORT_DIR."/$branch/$revision/$report")) { diff --git a/list_builds.php b/list_builds.php index f091d0a..c14d11d 100755 --- a/list_builds.php +++ b/list_builds.php @@ -1,5 +1,5 @@ <?php - +error_reporting(E_ALL); define('BASE_REPORT_DIR', dirname($_SERVER['SCRIPT_FILENAME'])."/pftt-reports/"); $branch = $_GET['branch']; @@ -25,7 +25,7 @@ common_header(); $latest_revision = ''; $mtime = 0; - +/* foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { if ($revision=="." or $revision=="..") continue; @@ -36,13 +36,13 @@ foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { $latest_revision_mtime = $mtime; } } -} +}*/ ?> <table> <tr> <td>Latest:</td> - <td><a href="build.php?branch=<?php echo $branch; ?>&revision=<?php echo $revision; ?>"><?php echo $latest_revision; ?></a></td> + <td><a href="build.php?branch=<?php echo $branch; ?>&revision=<?php echo $latest_revision; ?>"><?php echo $latest_revision; ?></a></td> </tr> <?php /* <tr> <td>New Failures:</td> @@ -53,7 +53,7 @@ foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { <table> <?php -foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { +/*foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { if ($revision=="." or $revision=="..") continue; if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) { @@ -66,7 +66,7 @@ foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { <?php } // end if -} +} */ ?> diff --git a/pftt.php b/pftt.php index cef7cef..a0fbbd7 100755 --- a/pftt.php +++ b/pftt.php @@ -1,5 +1,5 @@ <?php - +error_reporting(E_ALL); include("include/functions.php"); $TITLE = "PHP: QA: PFTT"; -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php