X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e7a6085312ea8e0cc7b71adaef4074db9b15892..8dbe2058fb2e5717d3077dbaf890d3919405697e:/tools/jenkins/build.sh diff --git a/tools/jenkins/build.sh b/tools/jenkins/build.sh index d92a433ae4..f5b07f2928 100755 --- a/tools/jenkins/build.sh +++ b/tools/jenkins/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # This script is used by various build projects on Jenkins @@ -83,7 +83,8 @@ echo "XX Get out of the tree" echo "XX" if [ -d $WORKSPACE/build ] then - rm -rf $WORKSPACE/build + # Windows cannot remove the directory if it's still used by the previous build + rm -rf $WORKSPACE/build || sleep 10 && rm -rf $WORKSPACE/build || sleep 10 && rm -rf $WORKSPACE/build fi mkdir $WORKSPACE/build cd $WORKSPACE/build @@ -122,7 +123,7 @@ cmake -G"$GENERATOR"\ -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \ -Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \ -Denable_smpi_ISP_testsuite=$(onoff test "$build_mode" = "ModelChecker") \ - -Denable_compile_optimizations=$(onoff test "$build_mode" = "Debug") \ + -Denable_compile_optimizations=$(onoff test "$build_mode" != "DynamicAnalysis") \ -Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \ -Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \ -Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \