This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate regular CircleCI builds to CTest (#687)
Migrate regular CircleCI builds to CTest
- Loading branch information
Showing
12 changed files
with
205 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## This file should be placed in the root directory of your project. | ||
## Then modify the CMakeLists.txt file in the root directory of your | ||
## project to incorporate the testing dashboard. | ||
## | ||
|
||
set(CTEST_PROJECT_NAME "Drafter") | ||
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") | ||
|
||
set(CTEST_DROP_METHOD "http") | ||
set(CTEST_DROP_SITE "my.cdash.org") | ||
set(CTEST_DROP_LOCATION "/submit.php?project=Drafter") | ||
set(CTEST_DROP_SITE_CDASH TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
|
||
if("${CTEST_BUILD_NAME}" STREQUAL "") | ||
set(CTEST_BUILD_NAME "${CTEST_BUILD_TYPE}") | ||
else() | ||
set(CTEST_BUILD_NAME "${CTEST_BUILD_TYPE}/${CTEST_BUILD_NAME}") | ||
endif() | ||
|
||
set(CTEST_SOURCE_DIRECTORY ".") | ||
set(CTEST_BINARY_DIRECTORY "build") | ||
|
||
set(CTEST_CMAKE_GENERATOR "Unix Makefiles") | ||
|
||
set(CTEST_USE_LAUNCHERS 1) | ||
set(CTEST_MODEL "Continuous") | ||
|
||
ctest_read_custom_files(${CTEST_BINARY_DIRECTORY}) | ||
|
||
ctest_start(${CTEST_MODEL} TRACK ${CTEST_MODEL}) | ||
ctest_configure(BUILD ${CTEST_BINARY_DIRECTORY} OPTIONS -DINTEGRATION_TESTS=ON RETURN_VALUE ret_con) | ||
ctest_build(BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE ret_bld) | ||
|
||
if(ret_bld EQUAL 0) | ||
ctest_test(BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE ret_tst) | ||
endif() | ||
|
||
ctest_submit(RETURN_VALUE ret_sub) | ||
|
||
if(NOT ret_con EQUAL 0) | ||
message(FATAL_ERROR "CI failing on config") | ||
endif() | ||
|
||
if(NOT ret_bld EQUAL 0) | ||
message(FATAL_ERROR "CI failing on build") | ||
endif() | ||
|
||
if(NOT ret_tst EQUAL 0) | ||
message(FATAL_ERROR "CI failing on tests") | ||
endif() | ||
|
||
if(NOT ret_sub EQUAL 0) | ||
message(WARNING "Unable to submit results to CDash") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.