Skip to content
Snippets Groups Projects
Commit b04a4ff8 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

Merge branch 'ci_all_pipelines' into 'develop'

CI setup all pipelines

See merge request orfeotoolbox/otb!416
parents 0ef9362a 6d39e75e
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ stages:
- build
.general:
only: [merge_requests]
retry:
max: 2
when:
......@@ -17,14 +16,45 @@ stages:
native-build:
extends: .general
only: [merge_requests]
stage: build
image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ubuntu-native:18.04
script:
- ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-gcc
shark-build:
.build-common:
extends: .general
stage: build
image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ubuntu-shark:18.04
script:
- ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-shark
build-wip:
extends: .build-common
variables:
OTB_CI_PROFILE: 'wip'
except:
- merge_requests
- develop
- /^release-[0-9]+\.[0-9]+$/
build-mr:
extends: .build-common
variables:
OTB_CI_PROFILE: 'mr'
only:
- merge_requests
build-develop:
extends: .build-common
variables:
OTB_CI_PROFILE: 'develop'
only:
- develop
build-release:
extends: .build-common
variables:
OTB_CI_PROFILE: 'release'
only:
- /^release-[0-9]+\.[0-9]+$/
......@@ -26,7 +26,17 @@ set (ENV{LANG} "C") # Only ascii output
set (CTEST_BUILD_CONFIGURATION "Release")
set (CTEST_CMAKE_GENERATOR "Ninja")
set (CTEST_BUILD_NAME "$ENV{CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}_to_$ENV{CI_MERGE_REQUEST_TARGET_BRANCH_NAME}")
# Find the build name
set(ci_mr_source "$ENV{CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}")
set(ci_mr_target "$ENV{CI_MERGE_REQUEST_TARGET_BRANCH_NAME}")
set(ci_ref_name "$ENV{CI_COMMIT_REF_NAME}")
set (CTEST_BUILD_NAME "$ENV{CI_COMMIT_SHORT_SHA}")
if(ci_mr_source AND ci_mr_target)
set (CTEST_BUILD_NAME "${CTEST_BUILD_NAME} (${ci_mr_source} to ${ci_mr_target})")
elseif(ci_ref_name)
set (CTEST_BUILD_NAME "${CTEST_BUILD_NAME} (${ci_ref_name})")
endif()
set (CTEST_SITE "${IMAGE_NAME}")
# Directory variable
......@@ -42,6 +52,7 @@ set (CMAKE_COMMAND "cmake")
set (OTB_DATA_ROOT "${OTB_SOURCE_DIR}/otb-data/") # todo
set (OTB_LARGEINPUT_ROOT "") # todo
message(STATUS "CI profile : $ENV{OTB_CI_PROFILE}")
#The following file set the CONFIGURE_OPTIONS variable
set (CONFIGURE_OPTIONS "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment