-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3067 from chuckatkins/ci-images-v2
Major CI rework
- Loading branch information
Showing
94 changed files
with
1,457 additions
and
169 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 was deleted.
Oops, something went wrong.
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,62 @@ | ||
if(POLICY CMP0057) | ||
cmake_policy(SET CMP0057 NEW) | ||
endif() | ||
|
||
if(NOT CTEST_BUILD_CONFIGURATION) | ||
set(CTEST_BUILD_CONFIGURATION Debug) | ||
endif() | ||
|
||
if(NOT DEFINED NCPUS) | ||
include(ProcessorCount) | ||
ProcessorCount(NCPUS) | ||
endif() | ||
math(EXPR N2CPUS "${NCPUS}*2") | ||
if(NOT CTEST_BUILD_FLAGS) | ||
if(CTEST_CMAKE_GENERATOR STREQUAL "Unix Makefiles") | ||
set(CTEST_BUILD_FLAGS "-k -j${N2CPUS}") | ||
elseif(CTEST_CMAKE_GENERATOR STREQUAL "Ninja") | ||
set(CTEST_BUILD_FLAGS "-k0 -j${N2CPUS}") | ||
endif() | ||
endif() | ||
if(NOT PARALLEL_LEVEL IN_LIST CTEST_TEST_ARGS) | ||
list(APPEND CTEST_TEST_ARGS PARALLEL_LEVEL ${N2CPUS}) | ||
endif() | ||
|
||
if(NOT dashboard_model) | ||
set(dashboard_model Experimental) | ||
endif() | ||
if(NOT dashboard_binary_name) | ||
set(dashboard_binary_name "build") | ||
endif() | ||
if(NOT dashboard_track) | ||
set(dashboard_track "Continuous Integration") | ||
endif() | ||
find_program(CTEST_GIT_COMMAND git) | ||
if(NOT "$ENV{CI_COMMIT_REF}" STREQUAL "") | ||
set(dashboard_git_branch "$ENV{CI_COMMIT_REF}") | ||
set(CTEST_UPDATE_VERSION_ONLY ON) | ||
endif() | ||
if(NOT "$ENV{CI_SITE_NAME}" STREQUAL "") | ||
set(CTEST_SITE "$ENV{CI_SITE_NAME}") | ||
endif() | ||
if(NOT "$ENV{CI_BUILD_NAME}" STREQUAL "") | ||
set(CTEST_BUILD_NAME "$ENV{CI_BUILD_NAME}") | ||
endif() | ||
if(NOT "$ENV{CI_ROOT_DIR}" STREQUAL "") | ||
set(CTEST_DASHBOARD_ROOT "$ENV{CI_ROOT_DIR}") | ||
endif() | ||
if(NOT "$ENV{CI_SOURCE_DIR}" STREQUAL "") | ||
set(CTEST_SOURCE_DIRECTORY "$ENV{CI_SOURCE_DIR}") | ||
endif() | ||
if(NOT "$ENV{CI_BIN_DIR}" STREQUAL "") | ||
set(CTEST_BINARY_DIRECTORY "$ENV{CI_BIN_DIR}") | ||
endif() | ||
|
||
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}") | ||
set(CTEST_UPDATE_COMMAND ${CTEST_GIT_COMMAND}) | ||
set(CTEST_UPTATE_TYPE git) | ||
set(CTEST_UPDATE_VERSION_ONLY TRUE) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../dashboard/adios_common.cmake) | ||
if(ctest_build_num_warnings GREATER 0) | ||
message(FATAL_ERROR "Found ${ctest_build_num_warnings} warnings.") | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Client maintainer: [email protected] | ||
|
||
include(ProcessorCount) | ||
ProcessorCount(NCPUS) | ||
math(EXPR N2CPUS "${NCPUS}*2") | ||
|
||
set(ENV{CC} gcc) | ||
set(ENV{CXX} g++) | ||
set(ENV{FC} gfortran) | ||
|
||
set(dashboard_cache " | ||
ADIOS2_USE_BZip2:BOOL=ON | ||
ADIOS2_USE_Blosc:BOOL=ON | ||
ADIOS2_USE_DataMan:BOOL=ON | ||
ADIOS2_USE_Fortran:BOOL=ON | ||
ADIOS2_USE_HDF5:BOOL=OFF | ||
ADIOS2_USE_MPI:BOOL=ON | ||
ADIOS2_USE_Python:BOOL=ON | ||
ADIOS2_USE_SZ:BOOL=ON | ||
ADIOS2_USE_ZeroMQ:STRING=ON | ||
ADIOS2_USE_ZFP:BOOL=ON | ||
CMAKE_C_FLAGS:STRING=-Wall | ||
CMAKE_CXX_FLAGS:STRING=-Wall | ||
CMAKE_Fortran_FLAGS:STRING=-Wall | ||
MPIEXEC_EXTRA_FLAGS:STRING=--allow-run-as-root --oversubscribe | ||
MPIEXEC_MAX_NUMPROCS:STRING=${N2CPUS} | ||
") | ||
|
||
set(CTEST_TEST_ARGS PARALLEL_LEVEL 1) | ||
set(CTEST_CMAKE_GENERATOR "Unix Makefiles") | ||
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}") | ||
include(${CMAKE_CURRENT_LIST_DIR}/ci-common.cmake) |
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,27 @@ | ||
# Client maintainer: [email protected] | ||
|
||
set(ENV{CC} gcc) | ||
set(ENV{CXX} g++) | ||
set(ENV{FC} gfortran) | ||
|
||
set(dashboard_cache " | ||
ADIOS2_USE_BZip2:BOOL=ON | ||
ADIOS2_USE_Blosc:BOOL=ON | ||
ADIOS2_USE_DataMan:BOOL=ON | ||
ADIOS2_USE_Fortran:BOOL=ON | ||
ADIOS2_USE_HDF5:BOOL=OFF | ||
ADIOS2_USE_MPI:BOOL=OFF | ||
ADIOS2_USE_Python:BOOL=ON | ||
ADIOS2_USE_SZ:BOOL=ON | ||
ADIOS2_USE_ZeroMQ:STRING=ON | ||
ADIOS2_USE_ZFP:BOOL=ON | ||
CMAKE_C_FLAGS:STRING=-Wall | ||
CMAKE_CXX_FLAGS:STRING=-Wall | ||
CMAKE_Fortran_FLAGS:STRING=-Wall | ||
") | ||
|
||
set(CTEST_TEST_ARGS PARALLEL_LEVEL 1) | ||
set(CTEST_CMAKE_GENERATOR "Unix Makefiles") | ||
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}") | ||
include(${CMAKE_CURRENT_LIST_DIR}/ci-common.cmake) |
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,34 @@ | ||
# Client maintainer: [email protected] | ||
|
||
include(ProcessorCount) | ||
ProcessorCount(NCPUS) | ||
math(EXPR N2CPUS "${NCPUS}*2") | ||
|
||
set(ENV{CC} gcc) | ||
set(ENV{CXX} g++) | ||
set(ENV{FC} gfortran) | ||
|
||
set(dashboard_cache " | ||
ADIOS2_USE_BZip2:BOOL=ON | ||
ADIOS2_USE_Blosc:BOOL=ON | ||
ADIOS2_USE_DataMan:BOOL=ON | ||
ADIOS2_USE_Fortran:BOOL=ON | ||
ADIOS2_USE_HDF5:BOOL=OFF | ||
ADIOS2_USE_MPI:BOOL=ON | ||
ADIOS2_USE_Python:BOOL=ON | ||
ADIOS2_USE_SZ:BOOL=ON | ||
ADIOS2_USE_ZeroMQ:STRING=ON | ||
ADIOS2_USE_ZFP:BOOL=ON | ||
CMAKE_C_FLAGS:STRING=-Wall | ||
CMAKE_CXX_FLAGS:STRING=-Wall | ||
CMAKE_Fortran_FLAGS:STRING=-Wall | ||
MPIEXEC_EXTRA_FLAGS:STRING=--allow-run-as-root --oversubscribe | ||
MPIEXEC_MAX_NUMPROCS:STRING=${N2CPUS} | ||
") | ||
|
||
set(CTEST_TEST_ARGS PARALLEL_LEVEL 1) | ||
set(CTEST_CMAKE_GENERATOR "Unix Makefiles") | ||
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}") | ||
include(${CMAKE_CURRENT_LIST_DIR}/ci-common.cmake) |
Oops, something went wrong.