コード例 #1
0
ファイル: debug.php プロジェクト: hgong/adt
  <li><a href="#REPOS">Repositories</a></li>
  <li><a href="#FB">Feature Branches</a></li>
  <li><a href="#TB">Translation Branches</a></li>
  <li><a href="#AB">Acceptance Branches</a></li>
  <li><a href="#INST">Acceptance Instances (Globale)</a></li>
</ul>

<?php 
draw_sep("REPOS");
echo "## getRepositories<br />\n";
$projectsNames = getRepositories();
my_print_r_toggle("REPOS_toggle", $projectsNames);
draw_sep("FB");
echo "## getFeatureBranches(projects)<br />\n";
$projects = array_keys($projectsNames);
$projects_FB = getFeatureBranches($projects);
my_print_r_toggle("FB_toggle", $projects_FB);
// Translation Branches
draw_sep("TB");
echo "## getTranslationBranches(projects)<br />\n";
$projects_TB = getTranslationBranches($projects);
foreach ($projects_TB as $project_key => $project_TB) {
    echo "{$project_key} <br />\n";
}
my_print_r_toggle("TB_toggle", $projects_TB);
// Acceptance Branches
draw_sep("TB");
echo "## getAcceptanceBranches()<br />\n";
$projects_AB = getAcceptanceBranches();
foreach ($projects_AB as $project_AB) {
    echo "{$project_AB} <br />\n";
コード例 #2
0
ファイル: features.php プロジェクト: CosentryKSC/adt
</div>
<!-- /navbar -->
<!-- Main ================================================== -->
<div id="wrap">
    <div id="main">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <p>This page summarizes all Git feature branches (<code>feature/.*</code>) and try to give an overview of branches health.</p>

                    <h3>Feature Branches deployed on acceptance <span class="subtitle">(status compared to each project <code>master</code> branch.)</span></h3>
                    <?php 
//List all projects
$projectsNames = getRepositories();
$projects = array_keys(getRepositories());
$features = getFeatureBranches($projects);
$translations = getTranslationBranches($projects);
?>
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th class="col-center">Branch feature/.*</th>
                            <?php 
foreach ($projects as $project) {
    ?>
                                <th class="col-center"><?php 
    echo $projectsNames[$project];
    ?>
</th>
                            <?php 
}
コード例 #3
0
ファイル: index.php プロジェクト: hgong/adt
                                        <span class="help-block">Current status of the feature branch</span>
                                    </div>
                                </div>
                            </div>
                            <div class="span4">
                                <div class="control-group">
                                    <label class="control-label" for="branch"><strong>Git branch</strong></label>

                                    <div class="controls" id="branch">
                                        <select name="branch">
                                            <option value="UNSET">=== Undefined ===</option>
                                            <?php 
            //List all projects
            $features = getFeatureBranches(array_keys(getRepositories()));
            foreach ($features as $feature => $FBProjects) {
                if (!empty($descriptor_array->SCM_BRANCH) && $descriptor_array->SCM_BRANCH === $feature || !in_array($feature, getFeatureBranches($features))) {
                    ?>
                                                    <option <?php 
                    if (!empty($descriptor_array->SCM_BRANCH) && $descriptor_array->SCM_BRANCH === $feature) {
                        echo "selected";
                    }
                    ?>
><?php 
                    echo $feature;
                    ?>
                                                    </option>
                                                <?php 
                }
            }
            ?>
                                        </select>