<commit_before>#!/bin/bash

THIS_SCRIPT=$0

SCRIPTS_HOME="$(cd `dirname "$THIS_SCRIPT"`/.. && pwd)"

CI_VIRTUALENV_PATH="/var/virtualenvs/ci_develop"
CI_EXECUTION_MODE="ci"

"$SCRIPTS_HOME/testing/run_deployment_unit_tests.py" "$CI_VIRTUALENV_PATH" $CI_EXECUTION_MODE

INTEGRATION_HOST_ALIAS="test2"
REPOSITORY_BRANCH="develop"
RSR_DATABASE="test2_rsrdb_develop"

"$SCRIPTS_HOME/deployment/execution/scenarios/deploy_rsr_release_candidate.py" $INTEGRATION_HOST_ALIAS $REPOSITORY_BRANCH $RSR_DATABASE<commit_msg>[#23633289] Updated the host details for our daily deployments (temporarily set to uat.akvo.org) and added virtualenv activation and deactivation commands to the run_integration_deployment.sh script.<commit_after>#!/bin/bash

THIS_SCRIPT=$0

SCRIPTS_HOME="$(cd `dirname "$THIS_SCRIPT"`/.. && pwd)"

CI_VIRTUALENV_PATH="/var/virtualenvs/ci_develop"
CI_EXECUTION_MODE="ci"

"$SCRIPTS_HOME/testing/run_deployment_unit_tests.py" "$CI_VIRTUALENV_PATH" $CI_EXECUTION_MODE

INTEGRATION_HOST_ALIAS="uat"
REPOSITORY_BRANCH="develop"
RSR_DATABASE="rsrdb_develop"

source "$CI_VIRTUALENV_PATH/bin/activate"
"$SCRIPTS_HOME/deployment/execution/scenarios/deploy_rsr_release_candidate.py" $INTEGRATION_HOST_ALIAS $REPOSITORY_BRANCH $RSR_DATABASE
deactivate
{'fraction_non_alphanumeric': 0.11332801276935354, 'fraction_numerical': 0.009577015163607342, 'mean_word_length': 10.097345132743364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4223319', 'n_tokens_mistral': 531, 'n_tokens_neox': 506, 'n_words': 61}