<commit_before>#!/bin/sh
# This script is used to manage building and testing the CMR applications within the continuous
# integration (CI) environment. The intent is to never need to modify the configuration of the CI
# server. Instead the CI server will simply call this script. The script should be run from the cmr
# root directory, ie, ./dev-system/support/build-and-test-ci.sh

lein modules do clean, install
cd search-app
lein with-profile docs generate-docs
cd ../dev-system
./support/build-and-run.sh
cd ..
CMR_ELASTIC_PORT=9206 lein modules test-out
curl -XPOST http://localhost:2999/stop<commit_msg>CMR-1296: Bamboo treating script as failing due to last command returning non-zero exit code<commit_after>#!/bin/sh
# This script is used to manage building and testing the CMR applications within the continuous
# integration (CI) environment. The intent is to never need to modify the configuration of the CI
# server. Instead the CI server will simply call this script. The script should be run from the cmr
# root directory, ie, ./dev-system/support/build-and-test-ci.sh

lein modules do clean, install
cd search-app
lein with-profile docs generate-docs
cd ../dev-system
./support/build-and-run.sh
cd ..
CMR_ELASTIC_PORT=9206 lein modules test-out
curl -XPOST http://localhost:2999/stop; true
{'fraction_non_alphanumeric': 0.08122605363984674, 'fraction_numerical': 0.01532567049808429, 'mean_word_length': 4.287449392712551, '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': '4426413', 'n_tokens_mistral': 393, 'n_tokens_neox': 365, 'n_words': 165}