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"
29 cmake -G "MSYS Makefiles" -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 .
31 if [ $? -ne 0 ] ; then
32 echo "Failed to perform the Cmake for $build_mode - Halting"
38 if [ $? -ne 0 ] ; then
39 echo "Build failure - Halting"
45 if [ $? -ne 0 ] ; then
46 echo "Failure while generating the Windows executable - Halting"
53 if [ $? -ne 0 ] ; then
54 echo "Failed to do the first cmake - Halting"
61 if [ $? -ne 0 ] ; then
62 echo "Failed to build dist - Halting"
66 tar xzf `cat VERSION`.tar.gz
68 if [ $? -ne 0 ] ; then
69 echo "Failed to extract the generated tgz - Halting"
75 if [ $? -ne 0 ] ; then
76 echo "Path `cat VERSION` cannot be found - Halting"
80 if [ "$build_mode" = "Debug" ]
82 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 .
85 if [ "$build_mode" = "ModelChecker" ]
87 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 .
90 if [ "$build_mode" = "DynamicAnalysis" ]
92 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 .
95 if [ $? -ne 0 ] ; then
96 echo "Failed to perform the Cmake for $build_mode - Halting"
102 if [ $? -ne 0 ] ; then
103 echo "Build failure - Halting"
109 ctest -T test --no-compress-output --timeout 100 || true
110 if [ -f Testing/TAG ] ; then
111 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl -o "$WORKSPACE/CTestResults.xml" Testing/`head -n 1 < Testing/TAG`/Test.xml
114 ctest -D ContinuousStart
115 ctest -D ContinuousConfigure
116 ctest -D ContinuousBuild
117 ctest -D ContinuousTest
118 ctest -D ContinuousSubmit