.gitlab-ci.yml 865 Bytes
Newer Older
Sébastien Dinot's avatar
Sébastien Dinot committed
1 2
variables:
  DOCKER_DRIVER: overlay2
3
  GIT_DEPTH: "3"
4
  GIT_CHECKOUT: "false"
5
  GIT_STRATEGY: "clone"
6 7 8 9 10

# Git checkout is disabled to let us handle efficiently the Git-LFS
before_script:
  - git lfs fetch origin $CI_COMMIT_REF_NAME
  - git checkout $CI_COMMIT_REF_NAME
Sébastien Dinot's avatar
Sébastien Dinot committed
11 12 13 14

stages:
  - build

15
.general:
Sébastien Dinot's avatar
Sébastien Dinot committed
16 17 18 19 20 21
  retry:
    max: 2
    when:
      - runner_system_failure
      - stuck_or_timeout_failure

Antoine Regimbeau's avatar
Typo  
Antoine Regimbeau committed
22
native-build:
23
  extends: .general
24
  only: [merge_requests]
Sébastien Dinot's avatar
Sébastien Dinot committed
25
  stage: build
26
  image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ubuntu-native:18.04
Sébastien Dinot's avatar
Sébastien Dinot committed
27
  script:
Antoine Regimbeau's avatar
Antoine Regimbeau committed
28
    - ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-gcc
Antoine Regimbeau's avatar
Antoine Regimbeau committed
29

30
build:ubuntu-llvm:
31
  extends: .general
Antoine Regimbeau's avatar
Antoine Regimbeau committed
32
  stage: build
33
  image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ubuntu-shark:18.04
Antoine Regimbeau's avatar
Antoine Regimbeau committed
34
  script:
Guillaume Pasero's avatar
Guillaume Pasero committed
35
    - ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-shark