Commit bb3e6f56 authored by Antoine Regimbeau's avatar Antoine Regimbeau

Add merge request environment

parent 4bca889f
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
SITE_NAME: $CI_MERGE_REQUEST_PROJECT_PATH
stages: stages:
- build - build
.retry_twice: .general:
only: [merge_requests]
retry: retry:
max: 2 max: 2
when: when:
...@@ -13,19 +13,15 @@ stages: ...@@ -13,19 +13,15 @@ stages:
- stuck_or_timeout_failure - stuck_or_timeout_failure
natif-build: natif-build:
variables: extends: .general
CI_DEBUG_TRACE: "true"
extends: .retry_twice
stage: build stage: build
image: registry.orfeo-toolbox.org/sdinot/otb:ubuntu-18.04-gccV0.2 image: registry.orfeo-toolbox.org/sdinot/otb:ubuntu-18.04-gccV0.2
script: script:
- echo $SITE_NAME - ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-gccV0.2
# - ctest -VV -S CI/main_ci.cmake \
# "-DCTEST_SITE:string=${CI_MERGE_REQUEST_PROJECT_PATH}_ubuntu-18.04"
shark-build: shark-build:
extends: .retry_twice extends: .general
stage: build stage: build
image: registry.orfeo-toolbox.org/sdinot/otb:ubuntu18.04-shark3.1.4 image: registry.orfeo-toolbox.org/sdinot/otb:ubuntu18.04-shark3.1.4
script: script:
- ctest -VV -S CI/main_ci.cmake - ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu18.04-shark3.1.4
\ No newline at end of file \ No newline at end of file
...@@ -27,7 +27,7 @@ set (CTEST_BUILD_CONFIGURATION "Release") ...@@ -27,7 +27,7 @@ set (CTEST_BUILD_CONFIGURATION "Release")
set (CTEST_CMAKE_GENERATOR "Unix Makefiles") set (CTEST_CMAKE_GENERATOR "Unix Makefiles")
set (CTEST_BUILD_NAME "$ENV{CI_MERGE_REQUEST_PROJECT_PATH}") set (CTEST_BUILD_NAME "$ENV{CI_MERGE_REQUEST_PROJECT_PATH}")
set (CTEST_SITE "$ENV{CI_REGISTRY_IMAGE}") set (CTEST_SITE "${IMAGE_NAME}")
# Directory variable # Directory variable
set (CTEST_SOURCE_DIRECTORY "${OTB_SOURCE_DIR}") set (CTEST_SOURCE_DIRECTORY "${OTB_SOURCE_DIR}")
......
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