5 echo "Running $0 with arguments:" >&2
11 echo "Build mode $build_mode on $(uname -np)" >&2
23 if test "$(uname -o)" = "Msys"; then
24 echo "On Windows, jenkins is not willing to expand variables for some reason" >&2
25 echo "Force use Debug mode" >&2
27 echo "Unknown build_mode $build_mode"
33 if test "$(uname -o)" = "Msys"; then
34 if [ -z "$NUMBER_OF_PROCESSORS" ]; then
35 NUMBER_OF_PROCESSORS=1
37 GENERATOR="MSYS Makefiles"
39 NUMBER_OF_PROCESSORS="$(nproc)" || NUMBER_OF_PROCESSORS=1
40 GENERATOR="Unix Makefiles"
43 # usage: die status message...
47 [ $# -gt 0 ] || set -- "Error - Halting"
52 # Get an ON/OFF string from a command:
54 if "$@" > /dev/null ; then
63 if [ -d $WORKSPACE/build ]
65 rm -rf $WORKSPACE/build
67 mkdir $WORKSPACE/build
70 cmake -G"$GENERATOR" -Denable_documentation=OFF $WORKSPACE
71 make dist -j$NUMBER_OF_PROCESSORS
72 tar xzf `cat VERSION`.tar.gz
76 -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
77 -Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \
78 -Denable_compile_optimization=$(onoff test "$build_mode" = "Debug") \
79 -Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \
80 -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
81 -Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
82 -Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \
83 -Denable_compile_warnings=ON -Denable_smpi=ON -Denable_lib_static=OFF \
84 -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF \
85 -Denable_tracing=ON -Denable_java=ON
86 make -j$NUMBER_OF_PROCESSORS
93 ctest -T test --output-on-failure --no-compress-output || true
94 if [ -f Testing/TAG ] ; then
95 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > CTestResults.xml
96 mv CTestResults.xml $WORKSPACE
99 if [ "$build_mode" = "DynamicAnalysis" ]
101 ctest -D ContinuousStart
102 ctest -D ContinuousConfigure
103 ctest -D ContinuousBuild
104 ctest -D ContinuousMemCheck
105 ctest -D ContinuousSubmit
108 ctest -D ContinuousStart
109 ctest -D ContinuousConfigure
110 ctest -D ContinuousBuild
111 ctest -D ContinuousTest
112 ctest -D ContinuousSubmit