Skip to content
Snippets Groups Projects
Forked from Main Repositories / otb
3360 commits behind the upstream repository.
  • Sébastien Dinot's avatar
    7986bfd4
    Add contributors' check · 7986bfd4
    Sébastien Dinot authored and Guillaume Pasero's avatar Guillaume Pasero committed
    This script aims to identify the unreferenced authors to invite the
    team to check if they have already signed the contributor license
    agreement (CLA). When this is done, the authors must be added to the
    reference list.
    7986bfd4
    History
    Add contributors' check
    Sébastien Dinot authored and Guillaume Pasero's avatar Guillaume Pasero committed
    This script aims to identify the unreferenced authors to invite the
    team to check if they have already signed the contributor license
    agreement (CLA). When this is done, the authors must be added to the
    reference list.
.gitlab-ci.yml 9.95 KiB
# WARNING!
# OTB uses Git-LFS to store the (large) tests data.
# Git-LFS is mostly transparent for the user and recent versions
# are able to use Git-LFS quite efficiently.
# But Git fails to manage efficiently numerous LFS data.
# We have to use directly git-lfs wrapping commands to have an
# efficient cloning step.
# Furthermore, Git-LFS and Gitlab sufer a bug preventing usage of
# GIT_STRATEGY=fetch (https://gitlab.com/gitlab-org/gitlab-runner/issues/3318)

variables:
  BUILD_IMAGE_REGISTRY: $CI_REGISTRY/orfeotoolbox/otb-build-env
  GIT_CLONE_PATH: $CI_BUILDS_DIR/otb
  DOCKER_DRIVER: overlay2
  GIT_DEPTH: "3"
  # Disable automatic checkout to let us fetch LFS before
  GIT_CHECKOUT: "false"
  # The fetch strategy fails with LFS and GitLab
  GIT_STRATEGY: "clone"

stages:
  - precheck
  - prepare
  - build
  - report
  - deploy

.general:
  retry:
    max: 2
    when:
      - runner_system_failure
      - stuck_or_timeout_failure

.common:
  extends: .general
  before_script:
    # Provision efficiently the local LFS cache before checkout
    - git lfs fetch origin $CI_COMMIT_SHA
    - git checkout -f -q $CI_COMMIT_SHA
  after_script:
    - python3 -u CI/cdash_handler.py

.common-build:
  extends: .common
  only:
    - merge_requests
    - develop
    - /^release-[0-9]+\.[0-9]+$/
  stage: build
  artifacts:
    when: always
    expire_in: 24 hrs
    paths:
      - build/*/*.log #CMake log
      - log/*.txt # Others
      - CookBook-*-html.tar.gz
      - CookBook-*.pdf
      - OTB-Doxygen-*.tar.bz2
      - OTB-*.run
      - OTB-*.zip
      - build/compile_commands.json
      - build/ctest_report.xml
      - build/cppcheck_report.xml
      - build/coverage_report.xml

.common-prepare:
  extends: .general
  only:
    - merge_requests