Commit 91d88f88 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

New before script for mac

No related merge requests found
Showing with 8 additions and 3 deletions
+8 -3
...@@ -139,8 +139,10 @@ macos-superbuild-prepare: ...@@ -139,8 +139,10 @@ macos-superbuild-prepare:
extends: .common-prepare extends: .common-prepare
stage: prepare stage: prepare
before_script: before_script:
# This override the previous before_script # Provision efficiently the local LFS cache before checkout
- git checkout $CI_COMMIT_REF_NAME - git lfs fetch origin $CI_COMMIT_SHA
# Checkout the expected branch
- git checkout -f -q $CI_COMMIT_SHA
script: script:
- ctest -VV -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-macos-superbuild - ctest -VV -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-macos-superbuild
artifacts: artifacts:
...@@ -157,7 +159,10 @@ macos-superbuild-build: ...@@ -157,7 +159,10 @@ macos-superbuild-build:
extends: .general extends: .general
stage: build stage: build
before_script: before_script:
- git checkout $CI_COMMIT_REF_NAME # Provision efficiently the local LFS cache before checkout
- git lfs fetch origin $CI_COMMIT_SHA
# Checkout the expected branch
- git checkout -f -q $CI_COMMIT_SHA
- ssh -o StrictHostKeyChecking=no -T git@gitlab.orfeo-toolbox.org - ssh -o StrictHostKeyChecking=no -T git@gitlab.orfeo-toolbox.org
after_script: after_script:
- echo "Nothing to do for after_script" - echo "Nothing to do for after_script"
......
Supports Markdown
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