Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
hive
hivemind
Commits
37d1868e
Commit
37d1868e
authored
4 years ago
by
Bartek Wrona
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yaml
parent
a39cb284
No related branches found
No related tags found
4 merge requests
!456
Release candidate v1 24
,
!230
Setup monitoring with pghero
,
!135
Enable postgres monitoring on CI server
,
!38
Hivemind ci separate sync
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yaml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yaml
with
10 additions
and
1 deletion
.gitlab-ci.yaml
+
10
−
1
View file @
37d1868e
...
...
@@ -71,6 +71,13 @@ hivemind_sync:
-
"
echo
Attempting
to
starting
hive
sync
using
hived
node:
$HIVEMIND_SOURCE_HIVED_URL
.
Max
sync
block
is:
$HIVEMIND_MAX_BLOCK"
-
echo Attempting to access database $DB_URL
-
./local-site/bin/hive sync --test-max-block=$HIVEMIND_MAX_BLOCK --exit-after-sync --test-profile=False --steemd-url "$HIVEMIND_SOURCE_HIVED_URL" --database-url $DB_URL 2>&1 | tee -i hivemind-sync.log
-
echo Attempting to start hive server listening on $HIVEMIND_HTTP_PORT port...
-
if [ -f hive_server.pid ]; then kill -SIGINT `cat hive_server.pid`; fi;
-
rm -f hive_server.pid
-
screen -L -Logfile hive_server.log -dmS hive_server_$CI_JOB_ID ./local-site/bin/hive server --pid-file hive_server.pid --http-server-port $HIVEMIND_HTTP_PORT --steemd-url "$HIVEMIND_SOURCE_HIVED_URL" --database-url $DB_URL
-
for i in `seq 1 10`; do if [ -f hive_server.pid ]; then break; else sleep 1; fi; done
-
cat hive_server.pid
artifacts
:
paths
:
-
hivemind-sync.log
...
...
@@ -91,7 +98,7 @@ hivemind_start_server:
script
:
-
echo Attempting to start hive server listening on $HIVEMIND_HTTP_PORT port...
-
if [ -f hive_server.pid ]; then kill -SIGINT `cat hive_server.pid` fi;
-
if [ -f hive_server.pid ]; then kill -SIGINT `cat hive_server.pid`
;
fi;
-
rm -f hive_server.pid
-
screen -L -Logfile hive_server.log -dmS hive_server_$CI_JOB_ID ./local-site/bin/hive server --pid-file hive_server.pid --http-server-port $HIVEMIND_HTTP_PORT --steemd-url "$HIVEMIND_SOURCE_HIVED_URL" --database-url $DB_URL
-
for i in `seq 1 10`; do if [ -f hive_server.pid ]; then break; else sleep 1; fi; done
...
...
@@ -102,5 +109,7 @@ hivemind_start_server:
-
hive_server.pid
expire_in
:
1 week
when
:
manual
tags
:
-
hivemind
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