]> AND Public Git Repository - simgrid.git/blobdiff - tools/jenkins/build.sh
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reword the Platform::routing documentation
[simgrid.git] / tools / jenkins / build.sh
index b44245a69a1bc3a8cf630471981a4a9c2aca17bd..7cffc16dd9412adf0d58512edbf13260ab9cb7c2 100755 (executable)
@@ -11,6 +11,7 @@ export LC_ALL=C
 echo "XXXX Cleanup previous attempts. Remaining content of /tmp:"
 rm -f /tmp/cc*
 rm -f /tmp/*.so
+rm -f /tmp/*.so.*
 rm -rf /tmp/simgrid-java*
 rm -rf /var/tmp/simgrid-java*
 rm -rf /tmp/jvm-*
@@ -186,11 +187,11 @@ if cmake --version | grep -q 3\.11 ; then
   # -DCMAKE_DISABLE_SOURCE_CHANGES=ON is broken with java on CMake 3.11
   # https://gitlab.kitware.com/cmake/cmake/issues/17933
   MAY_DISABLE_SOURCE_CHANGE=""
-else 
+else
   MAY_DISABLE_SOURCE_CHANGE="-DCMAKE_DISABLE_SOURCE_CHANGES=ON"
 fi
 
-if [ "$os" = "CentOS" ] && [ "$(ld -v | cut -d\  -f4)" = "2.30-90.el8" ]; then
+if [ "$os" = "CentOS" ] && [ "$(ld -v | cut -d\  -f4 | cut -c1-4)" = "2.30" ]; then
   echo "Temporary disable LTO, believed to be broken on this system."
   MAY_DISABLE_LTO=-Denable_lto=OFF
 else
@@ -222,7 +223,7 @@ echo "XX Run the tests"
 echo "XX   pwd: "$(pwd)
 echo "XX"
 
-ctest -T test --output-on-failure --no-compress-output || true
+ctest -T test --output-on-failure --no-compress-output -j $NUMBER_OF_PROCESSORS || true
 
 if test -n "$INSTALL" && [ "${branch_name}" = "origin/master" ] ; then
   echo "XX"