Algorithmique Numérique Distribuée Public GIT Repository
 author Augustin Degomme Fri, 26 Jul 2019 18:10:40 +0000 (20:10 +0200) committer Augustin Degomme Fri, 26 Jul 2019 18:10:40 +0000 (20:10 +0200)

index 7fbadb9..08cb9dd 100755 (executable)
@@ -193,7 +193,12 @@ 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><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td></tr>"
+    success=\$(grep -m 1 "Your build exited with 0" ./consoleText)
+    ball="red.png"
+    if [ -n "\$success" ]; then
+      ball="blue.png"
+    fi
+    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\"><img src=https://ci.inria.fr/simgrid/images/24x24/\${ball}></td><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td></tr>"
rm consoleText
done

@@ -209,7 +214,12 @@ java=\$(get_java)
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><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td></tr>"
+success=\$(grep -m 1 "Build success" ./consoleText)
+ball="red.png"
+if [ -n "\$success" ]; then
+  ball="blue.png"
+fi
+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\"><img src=https://ci.inria.fr/simgrid/images/24x24/\${ball}></td><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td></tr>"
rm consoleText

echo "</table>"