Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alarm-handler
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
alarm-handler
Commits
ec4b02b9
Commit
ec4b02b9
authored
2 years ago
by
Graziano Scalamera
Browse files
Options
Downloads
Patches
Plain Diff
Update docker image
parent
5fa2b9fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1719
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-23
1 addition, 23 deletions
.gitlab-ci.yml
with
1 addition
and
23 deletions
.gitlab-ci.yml
+
1
−
23
View file @
ec4b02b9
image
:
name
:
nexus.engageska-portugal.pt/ska-docker/tango-dsconfig
# The following variables are automatically passed down to the tangodb container
# as well as the tangodatabaseds container and available within each.
variables
:
MYSQL_ROOT_PASSWORD
:
"
secret"
MYSQL_DATABASE
:
"
tango"
MYSQL_USER
:
"
tango"
MYSQL_PASSWORD
:
"
tango"
MYSQL_HOST
:
"
tangodb"
TANGO_HOST
:
"
localhost:10000"
name
:
artefact.skatelescope.org/ska-tango-images-tango-dsconfig:1.5.5
stages
:
-
build
...
...
@@ -17,11 +7,7 @@ stages:
build_job
:
stage
:
build
before_script
:
#TODO: remove procps use for ps
-
sudo apt update && sudo apt -y --no-install-recommends install build-essential cmake pkg-config libboost-thread-dev procps
script
:
#- make
-
mkdir build && cd build
-
cmake -DBUILD_TESTS=ON ..
-
make
...
...
@@ -33,23 +19,15 @@ build_job:
test_load_job
:
stage
:
test
before_script
:
#TODO: remove procps use for ps
-
sudo apt update && sudo apt -y --no-install-recommends install libboost-thread-dev procps
script
:
-
sleep
10
-
/usr/local/bin/DataBaseds 2 -ORBendPoint giop:tcp::10000 &
-
sleep
10
-
exit_code=2
-
json2tango -w -a -u ./test/ah_config.json || exit_code=$?
# json2tango returns 2 if values written to DB
-
if [ ${exit_code} -ne 2 ]; then echo "Tango DB configuration failed!" ; else echo "Tango DB configuration succedeed!"; fi
-
sleep
5
-
./build/alarm-handler-srv 01 &
-
./build/bin/testdevice-srv 01 &
-
sleep
10
-
ps -ef | grep alarm-handler-srv | grep -v grep
-
ps -ef | grep testdevice-srv | grep -v grep
-
sleep
5
-
python ./test/load-alarm-conf.py --device=alarm/handler/01 --load="tag=test0;formula=(alarm/test/01/condition == 1);on_delay=0;off_delay=0;priority=high;shlvd_time=0;group=gr_test;message=Test alarm;url=;on_command=;off_command=;enabled=1"
-
sleep
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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