X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4dc49c9d77bc2dcba754a985c4c03e02c4b737fd..88a2fea01fe6b01e02c4ec8752affa512ba27050:/tools/jenkins/project_description.sh
diff --git a/tools/jenkins/project_description.sh b/tools/jenkins/project_description.sh
index a07a2198eb..b1f9d04c51 100755
--- a/tools/jenkins/project_description.sh
+++ b/tools/jenkins/project_description.sh
@@ -16,23 +16,118 @@ get_cmake(){
grep -m 1 "Cmake version" ./consoleText| sed "s/.*-- Cmake version \([a-zA-Z0-9\.]*\)/\1/g"
}
+get_ns3(){
+ found=$(grep -c "NS-3 found" ./consoleText)
+ if [ $found != 0 ]; then
+ echo "â"
+ else
+ echo ""
+ fi
+}
+
+get_python(){
+ found=$(grep -c "Compile Python bindings .....: ON" ./consoleText)
+ if [ $found != 0 ]; then
+ echo "â"
+ else
+ echo ""
+ fi
+}
+
if [ -f consoleText ]; then
rm consoleText
fi
+
+if [ -z $BUILD_URL ]; then
+ BUILD_URL="https://ci.inria.fr/simgrid/job/SimGrid/lastBuild"
+fi
+
#get the list of nodes on jenkins
-wget --quiet https://ci.inria.fr/simgrid/job/SimGrid/lastBuild/consoleText >/dev/null 2>&1
+wget --quiet ${BUILD_URL}/consoleText >/dev/null 2>&1
nodes=($(grep -rR "Triggering SimGrid ? Debug," ./consoleText | sed "s/Triggering SimGrid ? Debug,\(.*\)/\1/g"| sort))
rm consoleText
echo "
Description of the nodes - Automatically updated by project_description.sh script - Don't edit here
-
-
"
+
+
+
+
"
for node in "${nodes[@]}"
do
- wget --quiet https://ci.inria.fr/simgrid/job/SimGrid/lastBuild/build_mode=Debug,node=${node}/consoleText >/dev/null 2>&1
+ wget --quiet ${BUILD_URL}/build_mode=Debug,node=${node}/consoleText >/dev/null 2>&1
if [ ! -f consoleText ]; then
echo "file not existing for node ${node}"
exit 1
@@ -41,8 +136,10 @@ do
compiler=$(get_compiler)
java=$(get_java)
cmake=$(get_cmake)
+ ns3=$(get_ns3)
+ py=$(get_python)
os=$(grep -m 1 "OS Version" ./consoleText| sed "s/OS Version : \(.*\)/\1/g")
- echo " $node | $os | $compiler | $boost | $java | $cmake |
"
+ echo " $node | $os | $compiler | $boost | $java | $cmake | $ns3 | $py |
"
rm consoleText
done
@@ -57,17 +154,18 @@ do
sed -i -e "s/\r//g" ./consoleText
if [ $id == 0 ]; then
node="travis-linux"
- os="Ubuntu 14.04 (Trusty) 64 bits"
+ os="Ubuntu 16.04 (Xenial) 64 bits"
else
node="travis-mac"
- os="Mac OSX Sierra (kernel: 16.7.0)"
+ os="Mac OSX High Sierra (kernel: 17.4.0)"
fi
boost=$(get_boost)
compiler=$(get_compiler)
java=$(get_java)
cmake=$(get_cmake)
-
- echo " $node | $os | $compiler | $boost | $java | $cmake |
"
+ ns3=$(get_ns3)
+ py=$(get_python)
+ echo " $node | $os | $compiler | $boost | $java | $cmake | $ns3 | $py |
"
rm consoleText
done
@@ -81,8 +179,9 @@ boost=$(get_boost)
compiler=$(get_compiler)
java=$(get_java)
cmake=$(get_cmake)
-
-echo " $node | $os | $compiler | $boost | $java | $cmake |
"
+ns3=$(get_ns3)
+py=$(get_python)
+echo " $node | $os | $compiler | $boost | $java | $cmake | $ns3 | $py |
"
rm consoleText
echo "
"