<commit_before>#!/usr/bin/env bash

# This script requires the 'jq' command line tool
# brew install jq

# Grab the MOCK build
git checkout deploy-to-mock
git pull --rebase

# Push the MOCK build to STAGE
git push --force origin origin/deploy-to-mock:deploy-to-stage

# Wait for STAGE deploy to finish
GIT_REF=`jq -r '.gitRef' build-info.json` APP_BASE_URL=http://csra-stage.hmpps.dsd.io/health yarn wait-for-deploy

# Run the E2E tests against STAGE
APP_BASE_URL=http://csra-stage.hmpps.dsd.io yarn test:integration

# Switch back to master branch
git checkout master<commit_msg>CSRA-330: Get the build info file from th parent directory<commit_after>#!/usr/bin/env bash

# This script requires the 'jq' command line tool
# brew install jq

# Grab the MOCK build
git checkout deploy-to-mock
git pull --rebase

# Push the MOCK build to STAGE
git push --force origin origin/deploy-to-mock:deploy-to-stage

# Wait for STAGE deploy to finish
GIT_REF=`jq -r '.gitRef' ../build-info.json` APP_BASE_URL=http://csra-stage.hmpps.dsd.io/health yarn wait-for-deploy

# Run the E2E tests against STAGE
APP_BASE_URL=http://csra-stage.hmpps.dsd.io yarn test:integration

# Switch back to master branch
git checkout master
{'fraction_non_alphanumeric': 0.10016556291390728, 'fraction_numerical': 0.0041390728476821195, 'mean_word_length': 4.211206896551724, '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': '4610331', 'n_tokens_mistral': 438, 'n_tokens_neox': 400, 'n_words': 136}