Commit e29b318a authored by Auke Klazema's avatar Auke Klazema

SW-836: Add the Integration Test stage

parent b0949d48
stages:
- prepare
- build
- test
- unit_test
- integration_test
#
# PREPARE STAGE
......@@ -38,304 +39,44 @@ build_RAServices:
- build/gnucxx11_opt
- install/*.ztar
# build_CEP:
# stage: build
# image: ci_cep:latest
# script:
# - PACKAGE=CEP
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DCASAREST_ROOT_DIR=/opt/casarest/ ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_Docker:
# stage: build
# image: ci_docker:latest
# script:
# - PACKAGE=Docker
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_LCS:
# stage: build
# image: ci_lcs:latest
# script:
# - PACKAGE=LCS
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - docker run -d -v ~/WinCC-OA/3.15/:/opt/WinCC-OA/3.15/ wincc:latest # todo: set correct path and wincc image
# - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DWINCC_ROOT_DIR=/opt/WinCC_OA/3.15/ ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_LCU:
# stage: build
# image: ci_lcu:latest
# script:
# - PACKAGE=LCU
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_LTA:
# stage: build
# image: ci_lta:latest
# script:
# - PACKAGE=LTA
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_MAC:
# stage: build
# image: ci_mac:latest
# script:
# - PACKAGE=MAC
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - docker run -d -v ~/WinCC_OA/3.15/:/opt/WinCC_OA/3.15/ wincc:latest # todo: set correct path and wincc image
# - cmake -DCASACORE_ROOT_DIR=/opt/casacore/ -DWINCC_ROOT_DIR=/opt/WinCC_OA/3.15/ -DBLITZ_ROOT_DIR=/opt/blitz/ -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_QA:
# stage: build
# image: ci_qa:latest
# script:
# - PACKAGE=QA
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_RTCP:
# stage: build
# image: ci_rtcp:latest
# script:
# - PACKAGE=SAS
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DDAL_ROOT_DIR=/opt/DAL/ -DUSE_MPI=True -DUSE_OPENMP=True ../..
# - make
#
# artifacts:
# paths:
# - build/
#
#
# build_SAS:
# stage: build
# image: ci_sas:latest
# script:
# - PACKAGE=SAS
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
#
# (part of SAS):
# build_TriggerServices:
# stage: build
# image: ci_triggerservices:latest
# script:
# - PACKAGE=TriggerServices
# - VARIANT=gnucxx11_opt
# - echo "Building $PACKAGE..."
# - mkdir -p build/$VARIANT
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - make
#
# artifacts:
# paths:
# - build/
# UNIT TEST STAGE
#
unit_test_RAServices:
stage: unit_test
image: ci_raservices:latest
script:
- PACKAGE=RAServices
- echo "Testing $PACKAGE..."
- cd build/gnucxx11_opt
- SKIP_INTEGRATION_TESTS=true ctest
dependencies:
- build_RAServices
artifacts:
name: unit-test-report
when: always
paths:
- build/gnucxx11_opt/Testing/Temporary/LastTest.log
#
# TEST STAGE
# INTEGRATION TEST STAGE
#
# TODO: We should play around with the variable expansion on Gitlab CI a bit more to find a usable way to refer to the cmake line from the build step
test_RAServices:
stage: test
integration_test_RAServices:
stage: integration_test
image: ci_raservices:latest
script:
- PACKAGE=RAServices
- echo "Testing $PACKAGE..."
- cd build/gnucxx11_opt
- SKIP_INTEGRATION_TESTS=true ctest
- SKIP_UNIT_TESTS=true ctest
dependencies:
- build_RAServices
artifacts:
name: test-report
name: integration-test-report
when: always
paths:
- build/gnucxx11_opt/Testing/Temporary/LastTest.log
# test_CEP:
# stage: test
# image: ci_cep:latest
# script:
# - PACKAGE=CEP
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DCASAREST_ROOT_DIR=/opt/casarest/ ../..
# - ctest
#
#
# test_Docker:
# stage: test
# image: ci_docker:latest
# script:
# - PACKAGE=Docker
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - ctest
#
#
# test_LCS:
# stage: test
# image: ci_lcs:latest
# script:
# - PACKAGE=LCS
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DWINCC_ROOT_DIR=/opt/WinCC_OA/3.15/ ../..
# - cd build/$VARIANT
# - ctest
#
#
# test_LCU:
# stage: test
# image: ci_lcu:latest
# script:
# - PACKAGE=LCU
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - ctest
#
#
# test_LTA:
# stage: test
# image: ci_lta:latest
# script:
# - PACKAGE=LTA
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - ctest
#
#
# test_MAC:
# stage: test
# image: ci_mac:latest
# script:
# - PACKAGE=MAC
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DCASACORE_ROOT_DIR=/opt/casacore/ -DWINCC_ROOT_DIR=/opt/WinCC_OA/3.15/ -DBLITZ_ROOT_DIR=/opt/blitz/ -DBUILD_PACKAGES=$PACKAGE ../..
# - ctest
#
#
# test_QA:
# stage: test
# image: ci_qa:latest
# script:
# - PACKAGE=QA
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - ctest
#
#
# test_RTCP:
# stage: test
# image: ci_rtcp:latest
# script:
# - PACKAGE=RTCP
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE -DCASACORE_ROOT_DIR=/opt/casacore/ -DDAL_ROOT_DIR=/opt/DAL/ -DUSE_MPI=True -DUSE_OPENMP=True ../..
# - ctest
#
#
# test_SAS:
# stage: test
# image: ci_sas:latest
# script:
# - PACKAGE=SAS
# - VARIANT=gnucxx11_opt
# - echo "Testing $PACKAGE..."
# - cd build/$VARIANT
# - cmake -DBUILD_PACKAGES=$PACKAGE ../..
# - ctest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment