5 echo "Running $0 with arguments:" >&2
11 echo "Build mode $build_mode on $(uname -np)" >&2
13 if test "$(uname -o)" = "Msys"; then
14 if [ -z "$NUMBER_OF_PROCESSORS" ]; then
15 NUMBER_OF_PROCESSORS=1
17 GENERATOR="MSYS Makefiles"
19 NUMBER_OF_PROCESSORS="$(nproc)" || NUMBER_OF_PROCESSORS=1
20 GENERATOR="Unix Makefiles"
23 # usage: die status message...
27 [ $# -gt 0 ] || set -- "Error - Halting"
32 # Get an ON/OFF string from a command:
34 if "$@" > /dev/null ; then
43 if [ -d $WORKSPACE/build ]
45 rm -rf $WORKSPACE/build
47 mkdir $WORKSPACE/build
50 cmake -G"$GENERATOR" -Denable_documentation=OFF $WORKSPACE
51 make dist -j$NUMBER_OF_PROCESSORS
52 tar xzf `cat VERSION`.tar.gz
66 die 1 "Unknown build_mode $build_mode"
71 -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
72 -Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \
73 -Denable_compile_optimization=$(onoff test "$build_mode" = "Debug") \
74 -Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \
75 -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
76 -Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
77 -Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \
78 -Denable_compile_warnings=ON -Denable_smpi=ON -Denable_lib_static=OFF \
79 -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF \
80 -Denable_tracing=ON -Denable_java=ON
81 make -j$NUMBER_OF_PROCESSORS
88 ctest -T test --output-on-failure --no-compress-output || true
89 if [ -f Testing/TAG ] ; then
90 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > CTestResults.xml
91 mv CTestResults.xml $WORKSPACE
94 if [ "$build_mode" = "DynamicAnalysis" ]
96 ctest -D ContinuousStart
97 ctest -D ContinuousConfigure
98 ctest -D ContinuousBuild
99 ctest -D ContinuousMemCheck
100 ctest -D ContinuousSubmit
103 ctest -D ContinuousStart
104 ctest -D ContinuousConfigure
105 ctest -D ContinuousBuild
106 ctest -D ContinuousTest
107 ctest -D ContinuousSubmit