Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 2962889ae41ea47c4adddfde25f00b32 > files > 28

perl-Test-AutoBuild-1.2.2-13.fc15.i686.rpm

[% WRAPPER page.tt %]

[% FOREACH modules %]
  [% IF name == module %]
  <h2>Module: [% label | html %]</h2>

  <table id="summary" class="properties">
    <tr class="odd">
      <th>SCM checkout status:</th>
      <td class="[%checkout_status%]">[%checkout_status%]</td>
    </tr>
    <tr class="even">
      <th>Build status:</th>
      <td class="[%build_status%]">[%build_status%]</td>
    </tr>
    <tr class="odd">
      <th>Logs:</th>
      <td class="filename">
         [% IF checkout_output_log_file %]<a href="logs/modules/[% checkout_output_log_file %]">SCM checkout</a> ([% checkout_output_log_size %])<br>[% END %]
         [% IF build_output_log_file %]<a href="logs/modules/[% build_output_log_file %]">Build output</a> ([% build_output_log_size %])<br>[% END %]
         [% IF build_result_log_file %]<a href="logs/modules/[% build_result_log_file %]">Test results</a> ([% build_result_log_size %])<br>[% END %]
      </td>
    </tr>
    <tr class="even">
      <th>SCM checkout time:</th>
      <td>[% checkout_duration %]</td>
    </tr>
    <tr class="odd">
      <th>Build time:</th>
      <td>[% build_duration %]</td>
    </tr>
    [% IF links.size > 0 %]
      [% FOREACH links %]
      <tr class="[% IF loop.index() % 2 != 0 %]odd[%ELSE%]even[%END%]">
        <th>[%IF loop.index() == 0 %]Links:[%END%]</th>
        <td><a href="[% href | html %]">[% label | html %]</a></td>
      </tr>
      [% END %]
    [% END %]

    [% IF build_status == 'success' or build_status == 'cached' %]
      [% IF artifacts.size > 0 %]
        [% FOREACH artifacts %]
        <tr class="[% IF (links.size + loop.index()) % 2 != 0 %]odd[%ELSE%]even[%END%]">
          <th>[%IF loop.index() == 0 %]Artifacts:[%END%]</th>
          <td><a href="artifacts/[%name%]/[% path | html %]">[% label | html %]</a></td>
        </tr>
        [% END %]
      [% END %]
    [% END %]
  </table>

  [% IF tests.size > 0 %]
    <h3>Test results</h3>
         
    <table id="tests" class="data">
      <thead>
        <tr>
          <th>Name</th>
          <th>Duration</th>
          <th>Logs</th>
          <th>Status</th>
        </tr>
      </thead>
      <tbody>
      [% FOREACH tests %]
        <tr class="[% IF loop.index() % 2 != 0 %]odd[%ELSE%]even[%END%]">
          <td>[% name %]</td>
          <td>[% duration %]</td>
          <td>
            [% IF output_log_file %]<a class="filename" href="logs/modules/[% output_log_file %]">Test output</a> ([% output_log_size %])<br>[% END %]
            [% IF result_log_file %]<a class="filename" href="logs/modules/[% result_log_file %]">Test results</a> ([% result_log_size %])<br>[% END %]
          </td>
          <td class="[%status%]">[% status %]</td>
        </tr>
      [% END %]
      </tbody>
    </table>
  [% END %]

  <h3>Generated packages</h3>
  [% IF build_status == 'success' or build_status == 'cached' %]
    [% IF packages.size > 0 %]
      [% FOREACH platforms %]
        <h4>Packages: [% label %]</h4>

        <table id="packages" class="data">
          <thead>
            <tr>
              <th>Filename</th>
              <th>Size</th>
              <th>MD5 Sum</th>
            </tr>
          </thead>
          <tbody>
            [% FOREACH packages %]
              <tr class="[% IF loop.index() % 2 == 0 %]odd[%ELSE%]even[%END%]">
                <td class="filename"><a href="dist/[%type%]/[% filename | html %]">[% filename | html %]</a></td>
                <td class="size">[% prettysize %]</td>
                <td class="md5sum">[% md5sum %]</td>
              </tr>
            [% END %]
          </tbody>
        </table>
      [% END %]
    [% ELSE %]
      <p>No packages were built/found for this module</p>
    [% END %]
  [% ELSE %]
    [% IF build_status == 'failed' %]
      <p class="failed">Build failed on this module</p>
    [% ELSIF checkout_status == 'failed' %]
      <p class="skipped">Module skipped because SCM checkout failed</p>
    [% ELSIF build_status == 'skipped' %]
      <p class="skipped">Module skipped because dependency failed during build</p>
    [% ELSE %]
      <p>Module not built. Status: [% build_status %]</p>
    [% END %]
  [% END %]

  [% IF changes.size > 0 %]
    <h3>Changes since last build</h3>

    <table id="changes" class="data">
      <thead>
        <tr>
          <th></th>
          <th>Changelist</th>
          <th>User</th>
          <th>Date</th>
        </tr>
      <tbody>
        [% FOREACH changes %]
          <tr class="[% IF loop.index() % 2 == 0 %]odd[%ELSE%]even[%END%]">
            <td></td>
            <td>[% key %]</td>
            <td>[% user | html %]</td>
            <td>[% date %]</td>
          </tr>
          [% IF description %]
          <tr class="[% IF loop.index() % 2 == 0 %]odd[%ELSE%]even[%END%]">
            <th>Description:</th>
            <td colspan="3"><span class="description">[% description | html %]</td>
          </tr>
          [% END %]
          [% IF files && files.size > 0 %]
          <tr class="[% IF loop.index() % 2 == 0 %]odd[%ELSE%]even[%END%]">
            <th>Files:</th>
            <td colspan="3">
            [% FOREACH file = files %]
              <span class="filename">[% file | html %]</span><br>
            [% END %]
            </td>
          </tr>
          [% END %]
        [% END %]
      </tbody>
    </table>
  [% END %]

  [% END %]
  [% END %]
[% END %]