Commit 9d30f5fa authored by Jorrit Schaap's avatar Jorrit Schaap

TMSS-163: added build pipeline for LTAIngest

parent fdc67d63
......@@ -16,6 +16,12 @@ prepare_ci_sas_docker_image:
- 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 .
#
# BUILD STAGE
#
......@@ -56,6 +62,25 @@ build_RAServices:
paths:
- build/gnucxx11_opt
build_LTAIngest:
stage: build
image: ci_lta:latest
script:
- PACKAGE=LTAIngest
- echo "Building $PACKAGE..."
- mkdir -p build/gnucxx11_opt
- cd build/gnucxx11_opt
- cmake -DBUILD_PACKAGES=$PACKAGE -DUSE_LOG4CPLUS=false ../..
- make -j 6
- make install
dependencies:
- prepare_ci_lta_docker_image
artifacts:
expire_in: 6 hours
paths:
- build/gnucxx11_opt
#
# DOCKERIZE
#
......@@ -98,6 +123,50 @@ unit_test_TMSS:
paths:
- build/gnucxx11_opt/Testing/Temporary/LastTest.log
unit_test_RAServices:
stage: unit_test
image: ci_sas:latest
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:latest
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
#
# INTEGRATION TEST STAGE
#
......@@ -105,13 +174,17 @@ unit_test_TMSS:
integration_test_TMSS:
stage: integration_test
image: ci_sas:latest
# services:
# - rabbitmq:latest
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:
......@@ -142,6 +215,29 @@ integration_test_RAServices:
paths:
- build/gnucxx11_opt/Testing/Temporary/LastTest.log
integration_test_LTAIngest:
stage: integration_test
image: ci_lta:latest
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
#
# DEPLOY STAGE
#
......
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