Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
9d30f5fa
Commit
9d30f5fa
authored
5 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-163
: added build pipeline for LTAIngest
parent
fdc67d63
No related branches found
No related tags found
2 merge requests
!110
Resolve TMSS-163
,
!104
Resolve TMSS-146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+98
-2
98 additions, 2 deletions
.gitlab-ci.yml
with
98 additions
and
2 deletions
.gitlab-ci.yml
+
98
−
2
View file @
9d30f5fa
...
...
@@ -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
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment