Merge topic 'release-script-fixes'
214589b
Add ability to run as a ctest -S script also
This commit is contained in:
commit
e856509093
|
@ -1,4 +1,7 @@
|
||||||
|
set(CTEST_RUN_CURRENT_SCRIPT 0)
|
||||||
|
if(NOT DEFINED PROJECT_PREFIX)
|
||||||
set(PROJECT_PREFIX cmake-)
|
set(PROJECT_PREFIX cmake-)
|
||||||
|
endif()
|
||||||
if(NOT VERSION)
|
if(NOT VERSION)
|
||||||
set(VERSION 2.8)
|
set(VERSION 2.8)
|
||||||
endif()
|
endif()
|
||||||
|
@ -19,10 +22,17 @@ foreach(file ${FILES})
|
||||||
execute_process(COMMAND
|
execute_process(COMMAND
|
||||||
scp ${file} ${UPLOAD_LOC}
|
scp ${file} ${UPLOAD_LOC}
|
||||||
RESULT_VARIABLE result)
|
RESULT_VARIABLE result)
|
||||||
math(EXPR count "${count} + 1")
|
|
||||||
if("${result}" GREATER 0)
|
if("${result}" GREATER 0)
|
||||||
message(FATAL_ERROR "failed to upload file to ${UPLOAD_LOC}")
|
message(FATAL_ERROR "failed to upload file to ${UPLOAD_LOC}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Pause to give each upload a distinct (to the nearest second)
|
||||||
|
# time stamp
|
||||||
|
if(COMMAND ctest_sleep)
|
||||||
|
ctest_sleep(2)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
math(EXPR count "${count} + 1")
|
||||||
endif()
|
endif()
|
||||||
endforeach(file)
|
endforeach(file)
|
||||||
if(${count} EQUAL 0)
|
if(${count} EQUAL 0)
|
||||||
|
|
Loading…
Reference in New Issue