7 echo "Build mode $build_mode on $(uname -np)" >&2
9 if test "$(uname -o)" = "Msys"; then
10 if [ -z "$NUMBER_OF_PROCESSORS" ]; then
11 NUMBER_OF_PROCESSORS=1
13 GENERATOR="MSYS Makefiles"
15 NUMBER_OF_PROCESSORS="$(nproc)" || NUMBER_OF_PROCESSORS=1
16 GENERATOR="Unix Makefiles"
19 # usage: die status message...
23 [ $# -gt 0 ] || set -- "Error - Halting"
28 # Get an ON/OFF string from a command:
30 if "$@" > /dev/null ; then
39 if [ -d $WORKSPACE/build ]
41 rm -rf $WORKSPACE/build
43 mkdir $WORKSPACE/build
46 cmake -G"$GENERATOR" -Denable_documentation=OFF $WORKSPACE
47 make dist -j$NUMBER_OF_PROCESSORS
48 tar xzf `cat VERSION`.tar.gz
62 die 1 "Unknown build_mode $build_mode"
67 -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
68 -Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \
69 -Denable_compile_optimization=$(onoff test "$build_mode" = "Debug") \
70 -Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \
71 -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
72 -Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
73 -Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \
74 -Denable_compile_warnings=ON -Denable_smpi=ON -Denable_lib_static=OFF \
75 -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF \
76 -Denable_tracing=ON -Denable_java=ON
77 make -j$NUMBER_OF_PROCESSORS
84 ctest -T test --output-on-failure --no-compress-output || true
85 if [ -f Testing/TAG ] ; then
86 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > CTestResults.xml
87 mv CTestResults.xml $WORKSPACE
90 if [ "$build_mode" = "DynamicAnalysis" ]
92 ctest -D ContinuousStart
93 ctest -D ContinuousConfigure
94 ctest -D ContinuousBuild
95 ctest -D ContinuousMemCheck
96 ctest -D ContinuousSubmit
99 ctest -D ContinuousStart
100 ctest -D ContinuousConfigure
101 ctest -D ContinuousBuild
102 ctest -D ContinuousTest
103 ctest -D ContinuousSubmit