.gitlab-ci.yml 2.23 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 61 62 63 64 65 66 67 68 69 70 71 72
#------------------------------------------------------------------------
# gitlab-runner exec docker --timeout 7200 pages --docker-volumes ${HOME}/Sources/GDS/nds/nds2-test-blobs:/replay_data <target>

variables:
  DOCKER_DRIVER: overlay
  BRANCH: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
  COMMIT: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
  NIGHTLY: $CI_REGISTRY_IMAGE:nightly
  TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG

stages:
  - build-and-test

before_script:
  - ulimit -S -c 0

#========================================================================
# A N C H O R S
#========================================================================

#------------------------------------------------------------------------
# images
#------------------------------------------------------------------------
.template-image-deb-buster: &image-deb-buster
  image: debian:buster

.template-image-deb-stretch: &image-deb-stretch
  image: ligo/base:stretch

.template-image-deb-jessie: &image-deb-jessie
  image: ligo/base:jessie

#------------------------------------------------------------------------
# Debian
#------------------------------------------------------------------------
.deb:build: &deb-build-and-test
  script:
    #--------------------------------------------------------------------
    # First update package list and then ...
    # Extract the build dependencies and get them installed
    #--------------------------------------------------------------------
    - apt-get update
    - apt-get install -y build-essential cmake libboost-dev libpstreams-dev
    - rm -rf ${CI_PROJECT_DIR}/cmake-build
    - mkdir ${CI_PROJECT_DIR}/cmake-build
    - cd ${CI_PROJECT_DIR}/cmake-build
    - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    - cmake --build . -- VERBOSE=1
    - ctest
    - DESTDIR=${CI_PROJECT_DIR}/cmake-build/t cmake --build . --target install
  artifacts:
    expire_in: 1h
    paths:
      - cmake-build/t
  only:
    - pushes
    - schedules

ligo-channel-completion:buster:
  stage: build-and-test
  <<: *image-deb-buster
  <<: *deb-build-and-test

ligo-channel-completion:stretch:
  stage: build-and-test
  <<: *image-deb-stretch
  <<: *deb-build-and-test

ligo-channel-completion:jessie:
  stage: build-and-test
  <<: *image-deb-jessie
  <<: *deb-build-and-test