.gitlab-ci.yml 1.15 KB
Newer Older
Sébastien Dinot's avatar
Sébastien Dinot committed
1 2
variables:
  DOCKER_DRIVER: overlay2
3
  GIT_DEPTH: "3"
Sébastien Dinot's avatar
Sébastien Dinot committed
4 5 6 7

stages:
  - build

8
.general:
Sébastien Dinot's avatar
Sébastien Dinot committed
9 10 11 12 13
  retry:
    max: 2
    when:
      - runner_system_failure
      - stuck_or_timeout_failure
Antoine Regimbeau's avatar
Antoine Regimbeau committed
14 15
  # variables:
  #   CI_DEBUG_TRACE: "true"
Sébastien Dinot's avatar
Sébastien Dinot committed
16

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

25
.build-common:
26
  extends: .general
Antoine Regimbeau's avatar
Antoine Regimbeau committed
27
  stage: build
28
  image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ubuntu-shark:18.04
Antoine Regimbeau's avatar
Antoine Regimbeau committed
29
  script:
Guillaume Pasero's avatar
Guillaume Pasero committed
30
    - ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-shark
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

build-wip:
  extends: .build-common
  variables:
    OTB_CI_PROFILE: 'wip'
  except:
    - merge_requests
    - develop
    - /^release-[0-9]+\.[0-9]+$/

build-mr:
  extends: .build-common
  variables:
    OTB_CI_PROFILE: 'mr'
  only:
    - merge_requests

build-develop:
  extends: .build-common
  variables:
    OTB_CI_PROFILE: 'develop'
  only:
    - develop

build-release:
  extends: .build-common
  variables:
    OTB_CI_PROFILE: 'release'
  only:
    - /^release-[0-9]+\.[0-9]+$/