Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add more infos to Flags output, and write them to a file.
authordegomme <augustin.degomme@unibas.ch>
Mon, 27 Feb 2017 13:59:29 +0000 (14:59 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Mon, 27 Feb 2017 13:59:38 +0000 (14:59 +0100)
This will be used to set the description of the build

tools/jenkins/Flags.sh

index 100cc16..57b4f27 100755 (executable)
@@ -42,6 +42,9 @@ NUMPROC="$(nproc)" || NUMPROC=1
 
 cd $WORKSPACE/build
 
+NSTEPS=16
+STEP=1
+
 for buildjava in ON OFF
 do
   for builddebug in ON OFF
@@ -50,7 +53,8 @@ do
     do
       for buildmc in ON OFF
       do
-        echo "build with java=${buildjava}, debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}"
+        echo "Step ${STEP}/${NSTEPS} - Building with java=${buildjava}, debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}"
+        echo "Step ${STEP}/${NSTEPS} - Building with java=${buildjava}, debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}" > $WORKSPACE/buildstep
         cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=${buildjava} \
               -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
               -Denable_jedule=ON -Denable_mallocators=ON -Denable_debug=${builddebug} \
@@ -59,8 +63,11 @@ do
               -Denable_ns3=$(onoff test "$buildmc" != "ON") -Denable_coverage=OFF $WORKSPACE
         make -j$NUMPROC
         make clean
+        STEP=$((${STEP}+1))
       done
     done
   done
 done 
 
+echo "All builds finished cleanly" > $WORKSPACE/buildstep
+