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

CI: comment all steps, add windows-prepare

parent a4b47438
Pipeline #1125 failed with stage
in 1 second
......@@ -17,16 +17,16 @@ variables:
# The fetch strategy fails with LFS and GitLab
GIT_STRATEGY: "clone"
before_script:
# make sure LFS hooks are installed
- git lfs install
# Provision efficiently the local LFS cache before checkout
- git lfs fetch origin $CI_COMMIT_SHA
# Checkout the expected branch
- git checkout $CI_COMMIT_REF_NAME
after_script:
- python3 CI/cdash_handler.py $CI_COMMIT_SHA $CI_PROJECT_ID $CI_PROJECT_DIR $K8S_SECRET_CDASH
#~ before_script:
#~ # make sure LFS hooks are installed
#~ - git lfs install
#~ # Provision efficiently the local LFS cache before checkout
#~ - git lfs fetch origin $CI_COMMIT_SHA
#~ # Checkout the expected branch
#~ - git checkout $CI_COMMIT_REF_NAME
#~
#~ after_script:
#~ - python3 CI/cdash_handler.py $CI_COMMIT_SHA $CI_PROJECT_ID $CI_PROJECT_DIR $K8S_SECRET_CDASH
stages:
- precheck
......@@ -40,91 +40,124 @@ stages:
- runner_system_failure
- stuck_or_timeout_failure
fast-build:
extends: .general
only: [merge_requests, branches]
stage: precheck
image: $CI_REGISTRY/gpasero/otb/otb-install-ubuntu-native
before_script:
- export GIT_LFS_SKIP_SMUDGE=1
- git checkout $CI_COMMIT_REF_NAME
- python3 CI/check_twin_pipelines.py
script:
- ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-fast
- ccache -s
#~ fast-build:
#~ extends: .general
#~ only: [merge_requests, branches]
#~ stage: precheck
#~ image: $CI_REGISTRY/gpasero/otb/otb-install-ubuntu-native
#~ before_script:
#~ - export GIT_LFS_SKIP_SMUDGE=1
#~ - git checkout $CI_COMMIT_REF_NAME
#~ - python3 CI/check_twin_pipelines.py
#~ script:
#~ - ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-fast
#~ - ccache -s
#~
#~ .common-build:
#~ extends: .general
#~ only: [merge_requests]
#~ stage: build
#~
#~ debian-build:
#~ extends: .common-build
#~ image: $BUILD_IMAGE_REGISTRY/otb-debian-native:unstable
#~ script:
#~ - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=debian-unstable-gcc
#~
#~ ubuntu-llvm:
#~ extends: .common-build
#~ image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-native:18.04
#~ script:
#~ - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm
#~ artifacts:
#~ paths:
#~ - build/CookBook-*-html.tar.gz
#~ - build/Documentation/Cookbook/latex/CookBook-*.pdf
#~ - build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2
#~
#~ .common-prepare:
#~ extends: .general
#~ only: [merge_requests]
#~ stage: prepare
#~ before_script:
#~ # This override the previous before_script
#~ - git checkout $CI_COMMIT_REF_NAME
#~ # We are now doing the git-lfs install
#~ # This is done after the checkout so we avoid downloading Data
#~ # But we need it to upload the archive
#~ - git-lfs install
#~ - git config --global user.email "otbbot@orfeo-toolbox.org"
#~ - git config --global user.name "otbbot"
#~ - eval $(ssh-agent -s)
#~ - ssh-add <(echo "$K8S_SECRET_SSH")
#~ # This is for debug, we are checking the owner of the ssh key
#~ - ssh -o StrictHostKeyChecking=no -T git@gitlab.orfeo-toolbox.org
#~ after_script:
#~ - echo "Nothing to do for after_script"
#~ artifacts:
#~ expire_in: 24 hrs
#~ paths:
#~ # This recovers logs from superbuild build
#~ - build/*/*/*/*.log
#~ - sb_branch.txt
#~
#~ ubuntu-superbuild-prepare:
#~ extends: .common-prepare
#~ image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
#~ script:
#~ - ctest -V -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
#~
#~ centos-superbuild-prepare:
#~ extends: .common-prepare
#~ image: $BUILD_IMAGE_REGISTRY/otb-centos-superbuild-base:6.6
#~ script:
#~ - ctest -V -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
#~
#~ ubuntu-superbuild-build:
#~ extends: .common-build
#~ image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
#~ script:
#~ - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
#~ dependencies:
#~ - ubuntu-superbuild-prepare
#~
#~ centos-superbuild-build:
#~ extends: .common-build
#~ image: $BUILD_IMAGE_REGISTRY/otb-centos-superbuild-base:6.6
#~ script:
#~ - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
#~ dependencies:
#~ - centos-superbuild-prepare
.common-build:
windows-prepare:
extends: .general
only: [merge_requests]
stage: build
debian-build:
extends: .common-build
image: $BUILD_IMAGE_REGISTRY/otb-debian-native:unstable
script:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=debian-unstable-gcc
ubuntu-llvm:
extends: .common-build
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-native:18.04
script:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm
artifacts:
paths:
- build/CookBook-*-html.tar.gz
- build/Documentation/Cookbook/latex/CookBook-*.pdf
- build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2
.common-prepare:
extends: .general
only: [merge_requests]
# only: [merge_requests]
tags:
- windows
stage: prepare
before_script:
# This override the previous before_script
- git checkout $CI_COMMIT_REF_NAME
- git checkout %CI_COMMIT_REF_NAME%
# We are now doing the git-lfs install
# This is done after the checkout so we avoid downloading Data
# But we need it to upload the archive
- git-lfs install
- git config --global user.email "otbbot@orfeo-toolbox.org"
- git config --global user.name "otbbot"
- eval $(ssh-agent -s)
- ssh-add <(echo "$K8S_SECRET_SSH")
- set PATH=%PATH%;C:\tools\Git\usr\bin
- ssh-agent -s
- ssh-add <(echo "%K8S_SECRET_SSH%")
# This is for debug, we are checking the owner of the ssh key
- ssh -o StrictHostKeyChecking=no -T git@gitlab.orfeo-toolbox.org
- .\CI\dev_env.bat x64
- start /b clcache-server.exe
script:
- ctest -V -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-windows-superbuild-base
after_script:
- echo "Nothing to do for after_script"
- taskkill /f /im clcache-server.exe
artifacts:
expire_in: 24 hrs
paths:
# This recovers logs from superbuild build
- build/*/*/*/*.log
- sb_branch.txt
ubuntu-superbuild-prepare:
extends: .common-prepare
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
script:
- ctest -V -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
centos-superbuild-prepare:
extends: .common-prepare
image: $BUILD_IMAGE_REGISTRY/otb-centos-superbuild-base:6.6
script:
- ctest -V -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
ubuntu-superbuild-build:
extends: .common-build
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
script:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
dependencies:
- ubuntu-superbuild-prepare
centos-superbuild-build:
extends: .common-build
image: $BUILD_IMAGE_REGISTRY/otb-centos-superbuild-base:6.6
script:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
dependencies:
- centos-superbuild-prepare
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