Commit 83ae279e authored by Antoine Regimbeau's avatar Antoine Regimbeau

Add a new job for large input

parent 7b09c7e4
Pipeline #1772 canceled with stages
in 1 minute and 10 seconds
......@@ -147,3 +147,14 @@ macos-superbuild-build:
- ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-macos-superbuild
dependencies:
- macos-superbuild-prepare
large-input-build:
tags:
- macos
extends: .common-build
only : [ branches ]
script:
- ctest -V -S CI/main_superbuild.cmake \
-DIMAGE_NAME:string=otb-macos-superbuild -DOTB_DATA_USE_LARGEINPUT:BOOL=ON
dependencies:
- macos-superbuild-prepare
......@@ -58,9 +58,10 @@ OTB_USE_SSE_FLAGS:BOOL=ON")
set (otb_wrap_option
"OTB_WRAP_PYTHON:BOOL=ON")
# Those otions are set in main_ci.cmake
set (otb_data_option
"OTB_DATA_USE_LARGEINPUT:BOOL=OFF
OTB_DATA_LARGEINPUT_ROOT:PATH=${OTB_LARGEINPUT_ROOT}")
"OTB_DATA_USE_LARGEINPUT:BOOL=${OTB_DATA_USE_LARGEINPUT}
OTB_DATA_LARGEINPUT_ROOT:PATH=${OTB_DATA_LARGEINPUT_ROOT}")
set (cmake_configure_option
"CMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}
......
......@@ -76,8 +76,21 @@ set (PROJECT_SOURCE_DIR "${OTB_SOURCE_DIR}")
# Ctest command value
set (CMAKE_COMMAND "cmake")
# Data directory setting
set (OTB_LARGEINPUT_ROOT "") # todo
# Large Input Data directory setting
if ( OTB_DATA_USE_LARGEINPUT )
find_path( OTB_DATA_LARGEINPUT_ROOT
NAMES OTBData.readme
HINTS ${CTEST_SOURCE_DIRECTORY}/../../OTB-LargeInput ${OTB_LARGEINPUT_ROOT}
)
# For the CI the directory should be in
# ${CTEST_SOURCE_DIRECTORY}/../../OTB-LargeInput
if( ${OTB_DATA_LARGEINPUT_ROOT} STREQUAL "${OTB_DATA_LARGEINPUT_ROOT}-NOTFOUND" )
message( WARNING "Option -DOTB_DATA_USE_LARGEINPUT=ON is used but we \
could not found the OTBData.readme file. Make sure you set the \
OTB_DATA_LARGEINPUT_ROOT variable correctly.
OTB_DATA_USE_LARGEINPUT will be set to OFF.")
set( OTB_DATA_USE_LARGEINPUT "OFF")
endif()
message(STATUS "CI profile : ${ci_profile}")
......
Markdown is supported
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