[gnome-ostree] build.gnome.org: Show current smoketest screenshot



commit 13523057928afcaecacda1a0c07a30e3169388b9
Author: Colin Walters <walters verbum org>
Date:   Mon Sep 9 18:18:16 2013 -0400

    build.gnome.org: Show current smoketest screenshot
    
    Just for fun.

 extras/build.gnome.org/build.gnome.org.js |    5 +++++
 extras/build.gnome.org/index.html         |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/extras/build.gnome.org/build.gnome.org.js b/extras/build.gnome.org/build.gnome.org.js
index fa05c89..3b2b2ae 100644
--- a/extras/build.gnome.org/build.gnome.org.js
+++ b/extras/build.gnome.org/build.gnome.org.js
@@ -113,6 +113,11 @@
         statusNode.appendChild(document.createTextNode(text));
         if (meta['status'])
             spanNode.appendChild(document.createTextNode('  ' + meta['status']));
+
+        if (taskName == 'smoketest') {
+            var img = $("#smoketest-final-img").get(0);
+            img.setAttribute('src', WORKURL + meta['path'] + 
'/work-gnome-ostree-x86_64-runtime/screenshot-final.png');
+        }
     }
 
     function repowebIndexInit() {
diff --git a/extras/build.gnome.org/index.html b/extras/build.gnome.org/index.html
index 2764340..4a0f724 100644
--- a/extras/build.gnome.org/index.html
+++ b/extras/build.gnome.org/index.html
@@ -63,6 +63,11 @@
        <p>Smoketest: <a href="" id="smoketest-link"></a><span id="smoketest-span"></span></p>
        <p>Integrationtest: <a href="" id="integrationtest-link"></a><span 
id="integrationtest-span"></span></p>
        <p>Maintainer: Colin Walters &lt;walters verbum org&gt;</p>
+       <p>
+         <center>
+           <img id="smoketest-final-img"></img>
+         </center>
+       </p>
       </div>
     </div>
   </body>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]