Commit ab142420 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: fix python version and configure options

parent 431a64d7
......@@ -4,6 +4,8 @@ compiler: gcc
sudo: required
dist: bionic
python: "3.6"
before_install:
- sudo apt-get install -y wget file ninja-build
......
......@@ -47,16 +47,19 @@ set (PROJECT_SOURCE_DIR "${REMOTE_MODULE_SOURCE_DIR}")
# Ctest command value
set (CMAKE_COMMAND "cmake")
#The following file set the CONFIGURE_OPTIONS variable
set (CONFIGURE_OPTIONS
"-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=ON
-DOTB_BUILD_MODULE_AS_STANDALONE:BOOL=ON
-DCMAKE_PREFIX_PATH:PATH=${REMOTE_MODULE_SOURCE_DIR}/xdk
-DCMAKE_INSTALL_PREFIX:PATH=${CTEST_INSTALL_DIRECTORY}
-DCMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}
# Set the CONFIGURE_OPTIONS variable
set (all_options
"BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON
OTB_BUILD_MODULE_AS_STANDALONE:BOOL=ON
CMAKE_PREFIX_PATH:PATH=${REMOTE_MODULE_SOURCE_DIR}/xdk
CMAKE_INSTALL_PREFIX:PATH=${CTEST_INSTALL_DIRECTORY}
CMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}
")
string (REPLACE "\n" ";" rm_options ${all_options})
foreach(item ${rm_options})
set( CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS}-D${item};")
endforeach(item)
# Sources are already checked out : do nothing for update
set(CTEST_GIT_UPDATE_CUSTOM "${CMAKE_COMMAND}" "-E" "echo" "No update")
......
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