Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Duplicate cleanup instructions for jenkins builds in other scripts.
[simgrid.git] / tools / jenkins / build.sh
index b44245a..b10c887 100755 (executable)
@@ -190,7 +190,7 @@ 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 +222,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"