diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27949295e95c1d3c1a3ea6f4f9fce14b8551b5de..0f92aeb59745a7a164fd9b8c212aeec243d53aa1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -117,89 +117,89 @@ build_MCU_MAC: # UNIT TEST STAGE # -unit_test_TMSS: - stage: unit_test - image: ci_sas:$CI_COMMIT_SHORT_SHA - script: - - PACKAGE=TMSS - - echo "Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=true ctest - dependencies: - - build_TMSS - artifacts: - name: unit-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log - -unit_test_RAServices: - stage: unit_test - image: ci_sas:$CI_COMMIT_SHORT_SHA - script: - - PACKAGE=RAServices - - echo "Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=true ctest - services: - - rabbitmq:latest - variables: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. - dependencies: - - build_RAServices - artifacts: - name: unit-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log - -unit_test_LTAIngest: - stage: unit_test - image: ci_lta:$CI_COMMIT_SHORT_SHA - script: - - PACKAGE=LTAIngest - - echo "Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=true ctest - services: - - rabbitmq:latest - variables: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. - dependencies: - - build_LTAIngest - artifacts: - name: unit-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log - -unit_test_MCU_MAC: - stage: unit_test - image: ci_mac:$CI_COMMIT_SHORT_SHA - script: - - echo "Starting Qpid server..." && qpidd & - - PACKAGE=MCU_MAC - - echo "Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=true ctest - services: - - rabbitmq:latest - variables: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. - dependencies: - - build_MCU_MAC - artifacts: - name: unit-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log - allow_failure: true # allow failure for now, so MAC_MCU failure does not block this pipeline and we can deploy TMSS. TODO: fix docker_mac environment and services so the tests pass. +#unit_test_TMSS: +# stage: unit_test +# image: ci_sas:$CI_COMMIT_SHORT_SHA +# script: +# - PACKAGE=TMSS +# - echo "Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=true ctest +# dependencies: +# - build_TMSS +# artifacts: +# name: unit-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log +# +#unit_test_RAServices: +# stage: unit_test +# image: ci_sas:$CI_COMMIT_SHORT_SHA +# script: +# - PACKAGE=RAServices +# - echo "Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=true ctest +# services: +# - rabbitmq:latest +# variables: +# RABBITMQ_DEFAULT_USER: guest +# RABBITMQ_DEFAULT_PASS: guest +# LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. +# dependencies: +# - build_RAServices +# artifacts: +# name: unit-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log +# +#unit_test_LTAIngest: +# stage: unit_test +# image: ci_lta:$CI_COMMIT_SHORT_SHA +# script: +# - PACKAGE=LTAIngest +# - echo "Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=true ctest +# services: +# - rabbitmq:latest +# variables: +# RABBITMQ_DEFAULT_USER: guest +# RABBITMQ_DEFAULT_PASS: guest +# LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. +# dependencies: +# - build_LTAIngest +# artifacts: +# name: unit-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log +# +#unit_test_MCU_MAC: +# stage: unit_test +# image: ci_mac:$CI_COMMIT_SHORT_SHA +# script: +# - echo "Starting Qpid server..." && qpidd & +# - PACKAGE=MCU_MAC +# - echo "Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=true ctest +# services: +# - rabbitmq:latest +# variables: +# RABBITMQ_DEFAULT_USER: guest +# RABBITMQ_DEFAULT_PASS: guest +# LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. +# dependencies: +# - build_MCU_MAC +# artifacts: +# name: unit-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log +# allow_failure: true # allow failure for now, so MAC_MCU failure does not block this pipeline and we can deploy TMSS. TODO: fix docker_mac environment and services so the tests pass. # # DOCKERIZE @@ -230,71 +230,71 @@ dockerize_TMSS: # INTEGRATION TEST STAGE # -integration_test_TMSS: - stage: integration_test - image: ci_sas:$CI_COMMIT_SHORT_SHA - script: - - PACKAGE=TMSS - - echo "Integration Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=false SKIP_UNIT_TESTS=true ctest - services: - - rabbitmq:latest - variables: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. - dependencies: - - build_TMSS - artifacts: - name: integration-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log - -integration_test_RAServices: - stage: integration_test - image: ci_sas:$CI_COMMIT_SHORT_SHA - services: - - rabbitmq:latest - variables: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. - script: - - PACKAGE=RAServices - - echo "Integration Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=false SKIP_UNIT_TESTS=true ctest - dependencies: - - build_RAServices - artifacts: - name: integration-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log - -integration_test_LTAIngest: - stage: integration_test - image: ci_lta:$CI_COMMIT_SHORT_SHA - script: - - PACKAGE=LTAIngest - - echo "Integration Testing $PACKAGE..." - - cd build/gnucxx11_opt - - SKIP_INTEGRATION_TESTS=false SKIP_UNIT_TESTS=true ctest - services: - - rabbitmq:latest - variables: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest - LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. - dependencies: - - build_LTAIngest - artifacts: - name: integration-test-report - when: always - paths: - - build/gnucxx11_opt/Testing/Temporary/LastTest.log +#integration_test_TMSS: +# stage: integration_test +# image: ci_sas:$CI_COMMIT_SHORT_SHA +# script: +# - PACKAGE=TMSS +# - echo "Integration Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=false SKIP_UNIT_TESTS=true ctest +# services: +# - rabbitmq:latest +# variables: +# RABBITMQ_DEFAULT_USER: guest +# RABBITMQ_DEFAULT_PASS: guest +# LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. +# dependencies: +# - build_TMSS +# artifacts: +# name: integration-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log +# +#integration_test_RAServices: +# stage: integration_test +# image: ci_sas:$CI_COMMIT_SHORT_SHA +# services: +# - rabbitmq:latest +# variables: +# RABBITMQ_DEFAULT_USER: guest +# RABBITMQ_DEFAULT_PASS: guest +# LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. +# script: +# - PACKAGE=RAServices +# - echo "Integration Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=false SKIP_UNIT_TESTS=true ctest +# dependencies: +# - build_RAServices +# artifacts: +# name: integration-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log +# +#integration_test_LTAIngest: +# stage: integration_test +# image: ci_lta:$CI_COMMIT_SHORT_SHA +# script: +# - PACKAGE=LTAIngest +# - echo "Integration Testing $PACKAGE..." +# - cd build/gnucxx11_opt +# - SKIP_INTEGRATION_TESTS=false SKIP_UNIT_TESTS=true ctest +# services: +# - rabbitmq:latest +# variables: +# RABBITMQ_DEFAULT_USER: guest +# RABBITMQ_DEFAULT_PASS: guest +# LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq. +# dependencies: +# - build_LTAIngest +# artifacts: +# name: integration-test-report +# when: always +# paths: +# - build/gnucxx11_opt/Testing/Temporary/LastTest.log #