Commit 22c2260a authored by Stéphane Albert's avatar Stéphane Albert

ENH: CI: PKG: Reorganized .gitlab-ci.yml

parent f445bdf4
......@@ -32,7 +32,7 @@ stages:
- precheck
- prepare
- build
- packages
- package
.general:
retry:
......@@ -54,6 +54,10 @@ fast-build:
- ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-fast
- ccache -s
##
## Native builds section
.common-build:
extends: .general
only: [merge_requests]
......@@ -76,6 +80,11 @@ ubuntu-llvm:
- build/Documentation/Cookbook/latex/CookBook-*.pdf
- build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2
##
## SuperBuild XDK build section.
##
.common-prepare:
extends: .general
only: [merge_requests]
......@@ -102,37 +111,6 @@ ubuntu-llvm:
- build/*/*/*/*.log
- sb_branch.txt
superbuild-build:
# only: [merge_requests]
extends: .general
stage: build
dependencies:
- superbuild-prepare
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
script:
- git lfs install
- ctest -VV -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
after_script:
- echo "Nothing to do for after_script"
artifacts:
expire_in: 1 week
paths:
- build/*/*/*/*.log
- build_packages/OTB-6.7.0-Linux64.run
# packages:
# extends: .general
# stage: packages
# image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
# script:
# - ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
# dependencies:
# - superbuild-build
# artifacts:
# expire_in: 1 hour
# paths:
# - build_packages/
ubuntu-superbuild-prepare:
extends: .common-prepare
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
......@@ -145,8 +123,25 @@ centos-superbuild-prepare:
script:
- ctest -V -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
ubuntu-superbuild-build:
# TODO: CTT: Include osx-superbuild-prepare here.
##
## SuperBuild builds section.
.superbuild-build:
# only: [merge_requests]
extends: .common-build
# dependencies:
# - superbuild-prepare
artifacts:
expire_in: 1 week
paths:
- build/*/*/*/*.log
# - build_packages/OTB-6.7.0-Linux64.run
ubuntu-superbuild-build:
extends: .superbuild-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
......@@ -154,9 +149,42 @@ ubuntu-superbuild-build:
- ubuntu-superbuild-prepare
centos-superbuild-build:
extends: .common-build
extends: .superbuild-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
# TODO: CTT: Include osx-superbuild-build here.
##
## SuperBuild packaging section.
.superbuild-package:
extends: .general
stage: package
artifacts:
expire_in: 1 hour
paths:
- build/*/*/*/*.log
- build_packages/OTB-6.7.0-Linux64.run
ubuntu-package:
extends: .superbuild-package
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
script:
- ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
dependencies:
- ubuntu-superbuild-build
centos-package:
extends: .superbuild-package
image: $BUILD_IMAGE_REGISTRY/otb-centos-superbuild-base:6.6
script:
- ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
dependencies:
- centos-superbuild-build
# TODO: CTT: Include osx-package here.
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