Commit 6aca6c3e authored by guillaume pernot's avatar guillaume pernot

Merge branch 'out-of-order-job-execution' into 'develop'

Out-of-order jobs execution

See merge request !666
parents f4d9f252 8884d2a3
Pipeline #3460 passed with stages
in 5 minutes and 45 seconds
#
# Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
# Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
......@@ -106,7 +106,9 @@ stages:
#-------------------------- precheck job ---------------------------------------
fast-build:
extends: .common
only: [merge_requests, branches]
only:
- merge_requests
- branches
stage: precheck
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-native-develop:latest
before_script:
......@@ -143,7 +145,6 @@ debian-build:
after_script:
- export CI_ALLOW_FAILURE=ON
- python3 -u CI/cdash_handler.py
dependencies: []
## Ubuntu superbuild
ubuntu-xdk-prepare:
......@@ -162,8 +163,9 @@ ubuntu-xdk-build-doc:
- mv build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2 . || true
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-xdk -DNAME_SUFFIX:string=-glibc-2.27
- mv build_packages/OTB-*.run . || true
dependencies:
- ubuntu-xdk-prepare
needs:
- job: ubuntu-xdk-prepare
artifacts: true
## CentOS superbuild
centos-xdk-prepare:
......@@ -179,8 +181,9 @@ centos-xdk-build:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=centos-6.6-gcc
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=centos-6.6-gcc
- mv build_packages/OTB-*.run . || true
dependencies:
- centos-xdk-prepare
needs:
- job: centos-xdk-prepare
artifacts: true
## MacOS superbuild
macos-xdk-prepare:
......@@ -198,8 +201,9 @@ macos-xdk-build:
- ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=macos-10.11.6-clang
- ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=macos-10.11.6-clang
- mv build_packages/OTB-*.run . || true
dependencies:
- macos-xdk-prepare
needs:
- job: macos-xdk-prepare
artifacts: true
## Windows
.windows-prepare:
......@@ -238,8 +242,9 @@ windows-10-build:
- clcache.exe -s
- ctest -V -S CI/main_packages.cmake
- move "build_packages\OTB-*.zip" . || dir build_packages
dependencies:
- windows-10-prepare
needs:
- job: windows-10-prepare
artifacts: true
# - Win8.1
windows-8-prepare:
......@@ -263,8 +268,9 @@ windows-8-build:
- clcache.exe -s
- ctest -V -S CI/main_packages.cmake
- move "build_packages\OTB-*.zip" . || dir build_packages
dependencies:
- windows-8-prepare
needs:
- job: windows-8-prepare
artifacts: true
#------------------------- QA related jobs -------------------------------------
ubuntu-xdk-qa-code-coverage:
......@@ -286,8 +292,9 @@ ubuntu-xdk-qa-code-coverage:
- saxon-xslt -o build/ctest_report.xml
build/Testing/`head -n 1 build/Testing/TAG`/Test.xml
CI/ctest2junit.xsl
dependencies:
- ubuntu-xdk-prepare
needs:
- job: ubuntu-xdk-prepare
artifacts: true
ubuntu-xdk-qa-static-analysis:
extends: .common-build
......@@ -309,8 +316,9 @@ ubuntu-xdk-qa-static-analysis:
-i Modules/ThirdParty Modules
2> build/cppcheck_report.xml
after_script: []
dependencies:
- ubuntu-xdk-prepare
needs:
- job: ubuntu-xdk-prepare
artifacts: true
ubuntu-xdk-report:
extends: .common
......@@ -334,9 +342,11 @@ ubuntu-xdk-report:
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
after_script: []
dependencies:
- ubuntu-xdk-qa-code-coverage
- ubuntu-xdk-qa-static-analysis
needs:
- job: ubuntu-xdk-qa-code-coverage
artifacts: true
- job: ubuntu-xdk-qa-static-analysis
artifacts: true
#---------------------------- Deploy job ---------------------------------------
deploy:
......@@ -353,24 +363,18 @@ deploy:
- git lfs fetch origin $CI_COMMIT_SHA
- git checkout -f -q $CI_COMMIT_SHA
script:
- ./CI/deploy.sh
dependencies:
- ubuntu-xdk-build-doc
- centos-xdk-build
- macos-xdk-build
- windows-8-build
- windows-10-build
# deploy-prod:
# tags:
# - deploy
# only:
# - tag
# image: $BUILD_IMAGE_REGISTRY/otb-alpine:3.7
# stage: deploy
# when: manual
# script:
# - ./CI/deploy-prod.sh
- ./CI/deploy.sh $CI_COMMIT_REF_NAME $RC_NUMBER
needs:
- job: ubuntu-xdk-build-doc
artifacts: true
- job: centos-xdk-build
artifacts: true
- job: macos-xdk-build
artifacts: true
- job: windows-8-build
artifacts: true
- job: windows-10-build
artifacts: true
release-container:
image: $BUILD_IMAGE_REGISTRY/otb-alpine:3.7
......
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