2 SET (CTEST_SOURCE_DIRECTORY "/data/Builds/Nightly/Source")
3 SET (CTEST_BINARY_DIRECTORY "/data/Builds/Nightly/Build")
5 find_package(Subversion)
7 SET (CTEST_SVN_COMMAND ${Subversion_SVN_EXECUTABLE})
9 SET (CTEST_CHECKOUT_COMMAND "${CTEST_SVN_COMMAND} co http://www.opensg.org/svn_repo/trunk ${CTEST_SOURCE_DIRECTORY}")
11 # which ctest command to use for running the dashboard
12 SET (CTEST_COMMAND "/usr/bin/ctest -D Nightly")
14 SET (CTEST_NIGHTLY_START_TIME "01:00:00 CDT")
16 # what cmake command to use for configuring this dashboard
17 SET (CTEST_CMAKE_GENERATOR "Unix Makefiles")
18 SET (CTEST_PROJECT_NAME "OpenSG")
20 SET (CTEST_BUILD_FLAGS "-j10")
22 # this is the initial cache to use for the binary tree, be careful to escape
23 # any quotes inside of this string if you use it
24 SET (CTEST_INITIAL_CACHE "
26 CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
27 OSGBUILD_EXAMPLES_ADVANCED:BOOL=ON
28 OSGBUILD_EXAMPLES_SIMPLE:BOOL=ON
29 OSGBUILD_TESTS:BOOL=ON
30 OSGBUILD_UNITTESTS:BOOL=ON
32 OSGBUILD_ENABLE_PACKAGING:BOOL=ON
33 OSGBUILD_UPLOAD_PACKAGE:BOOL=ON
35 SITE:STRING=$ENV{SITE}
36 BUILDNAME:STRING=$ENV{BUILD_NAME}
37 OPENSG_UPLOAD_CODE:STRING=$ENV{UPLOAD_CODE}
40 SET (OPENSG_UPLOAD_CODE "$ENV{UPLOAD_CODE}")
41 SET (CTEST_SITE "$ENV{SITE}")
42 SET (CTEST_BUILD_NAME "$ENV{BUILD_NAME}")
44 ##ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
46 file(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "${CTEST_INITIAL_CACHE}")
50 ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE NUMBER_FILES)
52 ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
53 ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
54 ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
56 SET (CTEST_BUILD_TARGET "PackageUpload")
57 ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")