Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LOFAR2.0
tango
Commits
d20a4788
Commit
d20a4788
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-240
: Integration test script and CI
parent
0a8645a0
No related branches found
No related tags found
1 merge request
!89
Resolve L2SS-240 "Integration testing"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
sbin/run_integration_test.sh
+22
-0
22 additions, 0 deletions
sbin/run_integration_test.sh
with
32 additions
and
0 deletions
.gitlab-ci.yml
+
10
−
0
View file @
d20a4788
...
...
@@ -15,6 +15,7 @@ stages:
-
linting
-
static-analysis
-
unit-tests
-
integration-tests
linting
:
stage
:
linting
script
:
...
...
@@ -34,3 +35,12 @@ unit_test:
script
:
-
cd devices
-
tox -e py37
integration_test
:
stage
:
integration-tests
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
-
./sbin/run_integration_test.sh
This diff is collapsed.
Click to expand it.
sbin/run_integration_test.sh
0 → 100755
+
22
−
0
View file @
d20a4788
#!/bin/bash
# Check if lofar20rc.sh is sourced and environment variables are set.
if
[
-z
"
$LOFAR20_DIR
"
]
;
then
echo
"
\$
LOFAR20_DIR is unset or blank, is lofar20rc.sh sourced correctly?"
exit
1
fi
# Start all required containers
cd
"
$LOFAR20_DIR
/docker-compose"
||
exit
1
make start databaseds dsconfig device-sdp device-pcc jupyter elk sdptr-sim pypcc-sim
# Update the dsconfig
cd
"
$TANGO_LOFAR_LOCAL_DIR
"
||
exit
1
sbin/update_ConfigDb.sh CDB/integration_ConfigDb.json
# Start the integration test
cd
"
$LOFAR20_DIR
/docker-compose"
||
exit
1
make start integration-test
# Run the integration test with the output displayed on stdout
docker start
-a
integration-test
\ No newline at end of file
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