Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 9.82 KiB
stages:
  - prepare
  - build
  - unit_test
  - integration_test
  - dockerize
  - deploy

#
# PREPARE STAGE
#

prepare_ci_sas_docker_image:
  stage: prepare
  script:
    - docker build -t ci_base -f  Docker/lofar-ci/Dockerfile_ci_base .
    - docker build -t ci_sas -f  Docker/lofar-ci/Dockerfile_ci_sas .

prepare_ci_lta_docker_image:
  stage: prepare
  script:
    - docker build -t ci_base -f  Docker/lofar-ci/Dockerfile_ci_base .
    - docker build -t ci_lta -f  Docker/lofar-ci/Dockerfile_ci_lta .

#TODO: make proper MAC docker image with WinCC (rpm packages from mcu001)
#prepare_ci_mac_docker_image:
#  stage: prepare
#  script:
#    - docker build -t ci_base -f  Docker/lofar-ci/Dockerfile_ci_base .
#    - docker build -t ci_mac -f  Docker/lofar-ci/Dockerfile_ci_mac .

#
# BUILD STAGE
#

build_TMSS:
  stage: build
  image: ci_sas:latest
  script:
    - PACKAGE=TMSS
    - echo "Building $PACKAGE..."
    - mkdir -p build/gnucxx11_opt
    - cd build/gnucxx11_opt
    - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DCASAREST_ROOT_DIR=/opt/casarest/ -DUSE_LOG4CPLUS=false ../..
    - make -j 8
    - make install
  dependencies:
    - prepare_ci_sas_docker_image
  artifacts:
    expire_in: 6 hours
    paths:
      - build/gnucxx11_opt

build_RAServices:
  stage: build
  image: ci_sas:latest
  script:
    - PACKAGE=RAServices
    - echo "Building $PACKAGE..."
    - mkdir -p build/gnucxx11_opt
    - cd build/gnucxx11_opt
    - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DCASAREST_ROOT_DIR=/opt/casarest/ -DUSE_LOG4CPLUS=false ../..
    - make -j 8
    - make install
  dependencies:
    - prepare_ci_sas_docker_image
  artifacts:
    expire_in: 6 hours
    paths:
      - build/gnucxx11_opt