6 rm -rf $WORKSPACE/build
11 export PATH=./lib/:../../lib:$PATH
13 if test "$(uname -o)" = "Msys"
15 cmake -G "MSYS Makefiles" $WORKSPACE
17 if [ $? -ne 0 ] ; then
18 echo "Failed to do the first cmake - Halting"
24 if [ $? -ne 0 ] ; then
25 echo "Failed to build dist - Halting"
30 if [ "$build_mode" = "Debug" ]
32 cmake -G "MSYS Makefiles" -Denable_coverage=ON -Denable_java=ON -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=OFF .
35 if [ "$build_mode" = "ModelChecker" ]
37 cmake -G "MSYS Makefiles" -Denable_coverage=ON -Denable_java=ON -Denable_smpi=ON -Denable_model-checking=ON -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_compile_warnings=OFF .
40 if [ "$build_mode" = "DynamicAnalysis" ]
42 cmake -G "MSYS Makefiles" -Denable_lua=OFF -Denable_java=ON -Denable_tracing=ON -Denable_smpi=ON -Denable_compile_optimizations=OFF -Denable_compile_warnings=OFF -Denable_lib_static=OFF -Denable_model-checking=OFF -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF -Denable_mallocators=OFF -Denable_memcheck=ON .
45 if [ $? -ne 0 ] ; then
46 echo "Failed to perform the Cmake for $build_mode - Halting"
52 if [ $? -ne 0 ] ; then
53 echo "Build failure - Halting"
59 if [ $? -ne 0 ] ; then
60 echo "Failure while generating the Windows executable - Halting"
67 if [ $? -ne 0 ] ; then
68 echo "Failed to do the first cmake - Halting"
75 if [ $? -ne 0 ] ; then
76 echo "Failed to build dist - Halting"
80 tar xzf `cat VERSION`.tar.gz
82 if [ $? -ne 0 ] ; then
83 echo "Failed to extract the generated tgz - Halting"
89 if [ $? -ne 0 ] ; then
90 echo "Path `cat VERSION` cannot be found - Halting"
94 if [ "$build_mode" = "Debug" ]
96 cmake -Denable_coverage=ON -Denable_java=ON -Denable_model-checking=OFF -Denable_lua=ON -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON .
99 if [ "$build_mode" = "ModelChecker" ]
101 cmake -Denable_coverage=ON -Denable_java=ON -Denable_smpi=ON -Denable_model-checking=ON -Denable_lua=ON -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON .
104 if [ "$build_mode" = "DynamicAnalysis" ]
106 cmake -Denable_lua=OFF -Denable_java=ON -Denable_tracing=ON -Denable_smpi=ON -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON -Denable_lib_static=OFF -Denable_model-checking=OFF -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF -Denable_mallocators=OFF -Denable_memcheck=ON .
109 if [ $? -ne 0 ] ; then
110 echo "Failed to perform the Cmake for $build_mode - Halting"
116 if [ $? -ne 0 ] ; then
117 echo "Build failure - Halting"
123 ctest -T test --no-compress-output --timeout 100 || true
124 if [ -f Testing/TAG ] ; then
125 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl -o "$WORKSPACE/CTestResults.xml" Testing/`head -n 1 < Testing/TAG`/Test.xml
128 ctest -D ContinuousStart
129 ctest -D ContinuousConfigure
130 ctest -D ContinuousBuild
131 ctest -D ContinuousTest
132 ctest -D ContinuousSubmit