Skip to content
Snippets Groups Projects
Commit 3142ca95 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'further_ci_improvements' into 'develop'

Further ci improvements

See merge request !63
parents c6c1bcaf 7c71f260
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!63Further ci improvements
...@@ -50,6 +50,8 @@ hivemind_build: ...@@ -50,6 +50,8 @@ hivemind_build:
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always when: always
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "develop"'
when: always
- when: always - when: always
tags: tags:
...@@ -81,6 +83,8 @@ hivemind_sync: ...@@ -81,6 +83,8 @@ hivemind_sync:
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always when: always
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "develop"'
when: always
- if: '$CI_PIPELINE_SOURCE == "push"' - if: '$CI_PIPELINE_SOURCE == "push"'
when: manual when: manual
- when: on_success - when: on_success
...@@ -116,6 +120,8 @@ hivemind_start_server: ...@@ -116,6 +120,8 @@ hivemind_start_server:
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always when: always
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "develop"'
when: always
- if: '$CI_PIPELINE_SOURCE == "push"' - if: '$CI_PIPELINE_SOURCE == "push"'
when: manual when: manual
- when: on_success - when: on_success
...@@ -131,7 +137,10 @@ hivemind_stop_server: ...@@ -131,7 +137,10 @@ hivemind_stop_server:
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
when: manual rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
- when: manual
script: script:
- scripts/ci_stop_server.sh hive_server.pid - scripts/ci_stop_server.sh hive_server.pid
......
...@@ -4,9 +4,9 @@ set -e ...@@ -4,9 +4,9 @@ set -e
cd tests/tests_api/hivemind/tavern cd tests/tests_api/hivemind/tavern
pip3 install --user jsondiff pip3 install --user jsondiff==1.2.0
pip3 install --user tavern pip3 install --user tavern==1.2.2
pip3 install --user pytest pip3 install --user pytest==6.0.1
export HIVEMIND_ADDRESS=$1 export HIVEMIND_ADDRESS=$1
export HIVEMIND_PORT=$2 export HIVEMIND_PORT=$2
......
...@@ -29,6 +29,10 @@ kill -SIGINT `pgrep -f "$HIVE_NAME sync"` || true; ...@@ -29,6 +29,10 @@ kill -SIGINT `pgrep -f "$HIVE_NAME sync"` || true;
sleep 5 sleep 5
kill -9 `pgrep -f "$HIVE_NAME sync"` || true; kill -9 `pgrep -f "$HIVE_NAME sync"` || true;
kill -SIGINT `pgrep -f "$HIVE_NAME server"` || true;
sleep 5
kill -9 `pgrep -f "$HIVE_NAME server"` || true;
ls -l dist/* ls -l dist/*
rm -rf ./local-site rm -rf ./local-site
mkdir -p `python3 -m site --user-site` mkdir -p `python3 -m site --user-site`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment