Commit b5ffe94f authored by saubatn's avatar saubatn
Browse files

FIXED : correct emptying build directory at the beginning of the day, first...

FIXED : correct emptying build directory at the beginning of the day, first time the script is launched. (Previously was every 10 min !!!).

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@439 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 168c0bab
......@@ -44,6 +44,9 @@ include("${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake")
set(CONTINUOUS_BUILD_DURATION 43200) # Duration time of the main loop of the continuous build in seconds, here 12 hours.
set(CONTINUOUS_BUILD_SLEEP 600) # Step to perform each build <=> maximum time for the script to sleep between 2 builds.
# Clean binary directory at the beginning of the day
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
# Main loop
# During 10 hours from starting this script, CTest will continuously build every 10 min.
while (${CTEST_ELAPSED_TIME} LESS ${CONTINUOUS_BUILD_DURATION})
......
......@@ -44,6 +44,9 @@ include("${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake")
set(CONTINUOUS_BUILD_DURATION 43200) # Duration time of the main loop of the continuous build in seconds, here 12 hours.
set(CONTINUOUS_BUILD_SLEEP 600) # Step to perform each build <=> maximum time for the script to sleep between 2 builds.
# Clean binary directory at the beginning of the day
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
# Main loop
# During 10 hours from starting this script, CTest will continuously build every 10 min.
while (${CTEST_ELAPSED_TIME} LESS ${CONTINUOUS_BUILD_DURATION})
......@@ -52,7 +55,6 @@ while (${CTEST_ELAPSED_TIME} LESS ${CONTINUOUS_BUILD_DURATION})
# Start CTest in Continuous mode
ctest_start(Continuous)
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
# Update source code and get update command result
ctest_update(SOURCE ${CTEST_SOURCE_DIRECTORY} RETURN_VALUE count)
......
......@@ -44,6 +44,9 @@ include("${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake")
set(CONTINUOUS_BUILD_DURATION 43200) # Duration time of the main loop of the continuous build in seconds, here 12 hours.
set(CONTINUOUS_BUILD_SLEEP 600) # Step to perform each build <=> maximum time for the script to sleep between 2 builds.
# Clean binary directory at the beginning of the day
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
# Main loop
# During 10 hours from starting this script, CTest will continuously build every 10 min.
while (${CTEST_ELAPSED_TIME} LESS ${CONTINUOUS_BUILD_DURATION})
......@@ -52,7 +55,6 @@ while (${CTEST_ELAPSED_TIME} LESS ${CONTINUOUS_BUILD_DURATION})
# Start CTest in Continuous mode
ctest_start(Continuous)
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
# Update source code and get update command result
ctest_update(SOURCE ${CTEST_SOURCE_DIRECTORY} RETURN_VALUE count)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment