<repo_name>ComplexSystemsModeling/DashboardScripts<file_sep>/CoSMo-Singapore-Durian-ITK-i386-Wrapping.cmake
# maintainer: <NAME> <<EMAIL>>
# gcc (GCC) 4.2

set( arch i386 ) # ppc;i386;ppc64;x86_64
set( CTEST_SITE "Durian.CoSMo.sg" )
set( CTEST_BUILD_NAME "Darwin-c++-4.2-${arch}-WRAPITK" )
set( CTEST_BUILD_CONFIGURATION "Release" )
set( CTEST_CMAKE_GENERATOR "Unix Makefiles" )
set( CTEST_BUILD_FLAGS -j2 )
set( CTEST_TEST_ARGS PARALLEL_LEVEL 2 )
set( dashboard_root_name "Dashboards" )
set( dashboard_binary_name ITK-${arch}-WRAPITK )

set(ENV{CC}  gcc)
set(ENV{CXX} g++)

macro(dashboard_hook_init)
  set( dashboard_cache "
    CMAKE_OSX_ARCHITECTURES:STRING=${arch}
    BUILD_TESTING:BOOL=ON
    BUILD_EXAMPLES:BOOL=ON
    BUILD_SHARED_LIBS:BOOL=ON
    ITK_LEGACY_SILENT:BOOL=ON
    ITK_USE_REVIEW:BOOL=ON
    ITK_WRAP_JAVA:BOOL=ON
    ITK_WRAP_PYTHON:BOOL=ON
    ITK_USE_CCACHE:BOOL=ON
    ITK_USE_SYSTEM_SWIG:BOOL=ON
    ITK_USE_SYSTEM_GCCXML:BOOL=ON
    GCCXML:FILEPATH=/Users/CoSMoTest-Mac/src/gccxml/build-${arch}/bin/gccxml
    "
    )

  if("${dashboard_model}" STREQUAL "Nightly")
    message("Making sure to use the nightly-master branch")
    execute_process(
      COMMAND "${CTEST_GIT_COMMAND}" checkout nightly-master
      WORKING_DIRECTORY "${CTEST_SOURCE_DIRECTORY}"
      )
  endif()
endmacro(dashboard_hook_init)

include(${CTEST_SCRIPT_DIRECTORY}/ITKScripts/itk_common.cmake)

<file_sep>/CoSMo-Singapore-Durian-ITK-runtests.sh
#!/bin/bash -x

# whatever
source /Users/CoSMoTest-Mac/.profile
export PATH=/usr/local/git/bin:$PATH
date >> dates.txt

# goes to the script location
cd ~/DEVEL/GITROOT/DashboardScripts/

#update scripts
git pull > git.log

#run scripts
ctest -S CoSMo-Singapore-Durian-ITK-i386-Wrapping.cmake   -V > i386-Wrapping.log
ctest -S CoSMo-Singapore-Durian-ITK-x86_64-Wrapping.cmake -V > x86_64-Wrapping.log
ctest -S CoSMo-Singapore-Durian-ITK-ppc-Wrapping.cmake    -V > ppc-Wrapping.log

#update crontab for the day after is needed
crontab CoSMo-Singapore-Durian.crontab

<file_sep>/CoSMo-Singapore-ChickenRice-ITK-runtests.sh
#!/bin/bash -x

# goes to the script location
cd ~/DEVEL/GITROOT/DashboardScripts/

# whatever
export PATH=/usr/local/git/bin:$PATH
date >> dates.txt

#update scripts
git pull > git.log

#run scripts
ctest -S CoSMo-Singapore-ChickenRice-ITK-i386-Wrapping.cmake   -V > i386-Wrapping.log
ctest -S CoSMo-Singapore-ChickenRice-ITK-x86_64-Wrapping.cmake -V > x86_64-Wrapping.log
#ctest -S CoSMo-Singapore-ChickenRice-ITK-ppc-Wrapping.cmake    -V > ppc-Wrapping.log

#update crontab for the day after is needed
crontab CoSMo-Singapore-ChickenRice.crontab

<file_sep>/SIgN-Karoshi2-runtests.sh
#!/bin/sh

export PATH=/usr/local/git/bin:/opt/local/bin:$PATH

# Move into the directory that contains the scripts
cd /Users/alexgouaillard/DEVEL/GITROOT/DashboardScripts

# Update the scripts
git pull >& git.log 

# Run the scripts
ctest -S SIgN-Karoshi2-ppc-nightly.cmake    -V >& SIgN-Karoshi2-ppc-nightly.log
ctest -S SIgN-Karoshi2-i386-nightly.cmake   -V >& SIgN-Karoshi2-i386-nightly.log
ctest -S SIgN-Karoshi2-x86_64-nightly.cmake -V >& SIgN-Karoshi2-x86_64-nightly.log

ctest -S SIgN-Karoshi2-x86_64-GDCM-PROPER-nightly.cmake -V >& SIgN-Karoshi2-x86_64-GDCM-PROPER-nightly.log
ctest -S SIgN-Karoshi2-i386-GDCM-PROPER-nightly.cmake -V  >& SIgN-Karoshi2-i386-GDCM-PROPER-nightly.log
ctest -S SIgN-Karoshi2-x86_64-GDCM-FORK-nightly.cmake -V  >& SIgN-Karoshi2-x86_64-GDCM-FORK-nightly.log
ctest -S SIgN-Karoshi2-i386-GDCM-FORK-nightly.cmake -V  >& SIgN-Karoshi2-i386-GDCM-FORK-nightly.log

# Update the crontab for next day
crontab SIgN-Karoshi2.crontab

<file_sep>/SIgN-Karoshi-runtests.sh
#!/bin/sh

# Move into the directory that contains the scripts
cd /Users/alexgouaillard/DEVEL/GITROOT/DashboardScripts

# Update the scripts
git pull >& git.log 

# Run the scripts
ctest -S SIgN-Karoshi2-ppc-nightly.cmake    -V >& SIgN-Karoshi2-ppc-nightly.log
ctest -S SIgN-Karoshi2-i386-nightly.cmake   -V >& SIgN-Karoshi2-i386-nightly.log
ctest -S SIgN-Karoshi2-x86_64-nightly.cmake -V >& SIgN-Karoshi2-x86_64-nightly.log

ctest -S SIgN-Karoshi2-x86_64-GDCM_PROPER-nightly.cmake -V >& SIgN-Karoshi2-x86_64-GDCM-PROPER-nightly.log
ctest -S SIgN-Karoshi2-i386-GDCM_PROPER-nightly.cmake -V >& SIgN-Karoshi2-i386-GDCM-PROPER-nightly.log
ctest -S SIgN-Karoshi2-x86_64-GDCM_FORK-nightly.cmake -V >& SIgN-Karoshi2-x86_64-GDCM-FORK-nightly.log
ctest -S SIgN-Karoshi2-i386-GDCM_FORK-nightly.cmake -V >& SIgN-Karoshi2-i386-GDCM-FORK-nightly.log

# Update the crontab for next day
crontab SIgN-Karoshi2.crontab

