Commit 1ffb2d28 authored by Guillaume Pasero's avatar Guillaume Pasero

CI: enable packaging on windows

parent a7f979f2
Pipeline #1769 failed with stages
in 52 minutes and 46 seconds
......@@ -205,6 +205,7 @@ windows-10-build:
- clcache.exe -s
- ctest -V -S CI/main_superbuild.cmake
- clcache.exe -s
- ctest -VV -S CI/main_packages.cmake
dependencies:
- windows-10-prepare
......@@ -217,6 +218,7 @@ windows-8-build:
- clcache.exe -s
- ctest -V -S CI/main_superbuild.cmake
- clcache.exe -s
- ctest -VV -S CI/main_packages.cmake
dependencies:
- windows-8-prepare
......@@ -29,9 +29,20 @@ get_filename_component( OTB_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} DIRECTORY )
set ( DEBUG "1" )
set ( CTEST_BUILD_CONFIGURATION "Release" )
set ( CTEST_CMAKE_GENERATOR "Unix Makefiles" )
set ( CTEST_BUILD_FLAGS "-j1" )
if(WIN32)
set ( CTEST_CMAKE_GENERATOR "NMake Makefiles JOM" )
set ( CTEST_BUILD_FLAGS "/S" )
else()
set ( CTEST_CMAKE_GENERATOR "Unix Makefiles" )
set ( CTEST_BUILD_FLAGS "-j1")
endif()
set ( CTEST_BUILD_NAME "Packages" )
# Detect site
if(NOT DEFINED IMAGE_NAME)
if(DEFINED ENV{IMAGE_NAME})
set(IMAGE_NAME $ENV{IMAGE_NAME})
endif()
endif()
set ( CTEST_SITE "${IMAGE_NAME}" )
# Find the build name and CI profile
......@@ -62,7 +73,7 @@ set ( CONFIGURE_OPTIONS
find_program(CTEST_GIT_COMMAND NAMES git git.cmd)
# Sources are already checked out : do nothing for update
set(CTEST_GIT_UPDATE_CUSTOM echo No update)
set(CTEST_GIT_UPDATE_CUSTOM "${CMAKE_COMMAND}" "-E" "echo" "No update")
ctest_start( Experimental TRACK CI_Package )
......
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