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
0
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
7606023e
Commit
7606023e
authored
3 years ago
by
Graziano Scalamera
Browse files
Options
Downloads
Patches
Plain Diff
Fix test job
parent
d37897b4
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Test ci
Pipeline
#1595
failed with stages
Stage:
Stage:
Stage:
in 2 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-9
4 additions, 9 deletions
.gitlab-ci.yml
with
4 additions
and
9 deletions
.gitlab-ci.yml
+
4
−
9
View file @
7606023e
...
...
@@ -45,9 +45,6 @@ build_job:
configure_and_run_job
:
stage
:
conf
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 &
...
...
@@ -55,12 +52,8 @@ configure_and_run_job:
-
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 "
It
failed!" ; else echo "
It work
ed!"; fi
-
if [ ${exit_code} -ne 2 ]; then echo "
Tango DB configuration
failed!" ; else echo "
Tango DB configuration succede
ed!"; fi
-
sleep
5
-
./build/alarm-handler-srv 01 &
-
sleep
10
-
ps -ef | grep alarm-handler-srv | grep -v grep
-
sleep
10
needs
:
[
"
build_job"
]
services
:
-
name
:
nexus.engageska-portugal.pt/ska-docker/tango-db
...
...
@@ -72,7 +65,9 @@ test_job:
#TODO: remove procps use for ps
-
sudo apt update && sudo apt -y --no-install-recommends install libboost-thread-dev procps
script
:
-
ps -ef | grep
alarm-handler-srv
| grep -v grep
-
./build/
alarm-handler-srv
01 &
-
sleep
10
-
ps -ef | grep alarm-handler-srv | grep -v grep
-
sleep
5
needs
:
[
"
configure_and_run_job"
]
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