Commit fc921a02 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

Add nightly builds for linux windows and mac.

parent f3dce87e
...@@ -221,19 +221,29 @@ IF(BUILD_TESTING) ...@@ -221,19 +221,29 @@ IF(BUILD_TESTING)
IF (CMAKE_STRICT) IF (CMAKE_STRICT)
ADD_TEST_MACRO(DocTest DocTest) ADD_TEST_MACRO(DocTest DocTest)
ENDIF (CMAKE_STRICT) ENDIF (CMAKE_STRICT)
# macro to add a test that will build a nightly release
IF(CMAKE_BUILD_NIGHTLY_WINDOWS_TEST) # of CMake for given platform using the release scripts
FILE(MAKE_DIRECTORY "${CMake_BINARY_DIR}/Tests/CMake-CVS") MACRO(ADD_NIGHTLY_BUILD_TEST name script)
FILE(WRITE "${CMake_BINARY_DIR}/Tests/CMake-CVS/nightly-cmake.sh" SET(_TEST_DIR "${CMake_BINARY_DIR}/Tests/${name}")
"cd ${CMake_BINARY_DIR}/Tests/CMake-CVS FILE(MAKE_DIRECTORY "${_TEST_DIR}")
${CMake_BINARY_DIR}/bin/cmake -DCMAKE_CREATE_VERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/vogon_release.cmake FILE(WRITE "${_TEST_DIR}/nightly-cmake.sh"
"cd ${_TEST_DIR}
${CMake_BINARY_DIR}/bin/cmake -DCMAKE_CREATE_VERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/${script}
${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/upload_release.cmake ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/upload_release.cmake
") ")
ADD_TEST(NightlyCMakeBuild ADD_TEST(${name} /bin/sh ${_TEST_DIR}/nightly-cmake.sh)
/bin/sh ${CMake_BINARY_DIR}/Tests/CMake-CVS/nightly-cmake.sh) IF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
SET_TESTS_PROPERTIES ( NightlyCMakeBuild PROPERTIES TIMEOUT 3500) SET_TESTS_PROPERTIES (${name} PROPERTIES TIMEOUT 3500)
ENDIF(CMAKE_BUILD_NIGHTLY_WINDOWS_TEST) ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
ENDMACRO(ADD_NIGHTLY_BUILD_TEST)
IF(CMAKE_BUILD_NIGHTLY_RELEASES)
ADD_NIGHTLY_BUILD_TEST(CMakeNightlyWindows
dash2win64_release.cmake)
ADD_NIGHTLY_BUILD_TEST(CMakeNightlyMac
dashmacmini2_release.cmake)
ADD_NIGHTLY_BUILD_TEST(CMakeNightlyLinux
magrathea_release.cmake)
ENDIF(CMAKE_BUILD_NIGHTLY_RELEASES)
# add tests with more complex invocations # add tests with more complex invocations
ADD_TEST(Framework ${CMAKE_CTEST_COMMAND} ADD_TEST(Framework ${CMAKE_CTEST_COMMAND}
......
Supports Markdown
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