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

# 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
10 11 12 13

stages:
  - build

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

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

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