Algorithmique Numérique Distribuée Public GIT Repository
 author Augustin Degomme Mon, 22 Jul 2019 13:44:29 +0000 (15:44 +0200) committer Augustin Degomme Mon, 22 Jul 2019 13:44:51 +0000 (15:44 +0200)

index 845abf1..2a7ab8b 100755 (executable)
@@ -128,7 +128,7 @@ function sortTable(n, type) {
}
}</script>
<table id=configuration-matrix>

for node in "\${nodes[@]}"
do
@@ -144,7 +144,27 @@ do
ns3=\$(get_ns3)
py=\$(get_python)
os=\$(grep -m 1 "OS Version" ./consoleText| sed "s/OS Version : \(.*\)/\1/g")
-    echo "<tr> <td class=\"matrix-leftcolumn\">\$node</td><td class=\"matrix-cell\" style=\"text-align:left\">\$os</td><td class=\"matrix-cell\" style=\"text-align:left\">\$compiler</td><td class=\"matrix-cell\" style=\"text-align:left\">\$boost</td><td class=\"matrix-cell\" style=\"text-align:left\">\$java</td><td class=\"matrix-cell\" style=\"text-align:left\">\$cmake</td><td class=\"matrix-cell\" style=\"text-align:center\">\$ns3</td><td class=\"matrix-cell\" style=\"text-align:center\">\$py</td></tr>"
+
+    color1=""
+    color2=""
+    #in case of success, replace blue by green in status balls
+    wget --quiet https://ci.inria.fr/simgrid/buildStatus/text?job=SimGrid%2Fbuild_mode%3DDebug%2Cnode%3D\${node} -O status  >/dev/null 2>&1
+    status=\$(cat status)
+    if [ \$status == "Success" ]; then
+      color1="&color=green"
+    fi
+    rm status
+    statusmc=""
+    wget --quiet https://ci.inria.fr/simgrid/buildStatus/text?job=SimGrid%2Fbuild_mode%3DModelChecker%2Cnode%3D\${node} -O status >/dev/null 2>&1
+    status=\$(cat status)
+    if [ \$status ]; then
+      if [ \$status == "Success" ]; then
+        color2="&color=green"
+      fi
+    fi
+    rm status
+    echo "<tr> <td class=\"matrix-leftcolumn\">\$node</td><td class=\"matrix-cell\" style=\"text-align:left\">\$os</td><td class=\"matrix-cell\" style=\"text-align:left\">\$compiler</td><td class=\"matrix-cell\" style=\"text-align:left\">\$boost</td><td class=\"matrix-cell\" style=\"text-align:left\">\$java</td><td class=\"matrix-cell\" style=\"text-align:left\">\$cmake</td><td class=\"matrix-cell\" style=\"text-align:center\">\$ns3</td><td class=\"matrix-cell\" style=\"text-align:center\">\$py</td><td class="matrix-cell" style="text-align:center"><a href="build_mode=Debug,node=\${node}/"><img src="https://ci.inria.fr/simgrid/job/SimGrid/build_mode=Debug,node=\${node}/badge/icon?style=ball-24x24\${color1}"/></td><td class="matrix-cell" style="text-align:center">\${statusmc}</td></tr>"
rm consoleText
done

@@ -173,7 +193,7 @@ do
cmake=\$(get_cmake)
ns3=\$(get_ns3)
py=\$(get_python)
-    echo "<tr> <td class=\"matrix-leftcolumn\">\$node</td><td class=\"matrix-cell\" style=\"text-align:left\">\$os</td><td class=\"matrix-cell\" style=\"text-align:left\">\$compiler</td><td class=\"matrix-cell\" style=\"text-align:left\">\$boost</td><td class=\"matrix-cell\" style=\"text-align:left\">\$java</td><td class=\"matrix-cell\" style=\"text-align:left\">\$cmake</td><td class=\"matrix-cell\" style=\"text-align:center\">\$ns3</td><td class=\"matrix-cell\" style=\"text-align:center\">\$py</td></tr>"
+    echo "<tr> <td class=\"matrix-leftcolumn\">\$node</td><td class=\"matrix-cell\" style=\"text-align:left\">\$os</td><td class=\"matrix-cell\" style=\"text-align:left\">\$compiler</td><td class=\"matrix-cell\" style=\"text-align:left\">\$boost</td><td class=\"matrix-cell\" style=\"text-align:left\">\$java</td><td class=\"matrix-cell\" style=\"text-align:left\">\$cmake</td><td class=\"matrix-cell\" style=\"text-align:center\">\$ns3</td><td class=\"matrix-cell\" style=\"text-align:center\">\$py</td><td class=\"matrix-cell\" style=\"text-align:center\"></td><td class=\"matrix-cell\" style=\"text-align:center\"></td></tr>"
rm consoleText
done