<commit_before>#!/bin/bash
# This script runs the tests on Heroku CI

# Run the CumulusCI Unit Tests
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SalesforceFoundation/CumulusCI 
cd CumulusCI
git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
nosetests --with-tap --tap-stream --with-coverage --cover-package=cumulusci
coveralls

# Clone the CumulusCI-Test repo to run test builds against it with cci
git clone https://github.com/SalesforceFoundation/CumulusCI-Test
cd CumulusCI-Test
cci flow run ci_feature --org scratch --delete-org
cci flow run ci_master --org packaging
cci flow run release_beta --org packaging
cci flow run ci_beta --org scratch --delete-org
<commit_msg>- Only run ci_master, release_beta, and ci_beta flows on master commits - Emit TAP output for the cci flow runs<commit_after>#!/bin/bash
# This script runs the tests on Heroku CI

# Run the CumulusCI Unit Tests
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SalesforceFoundation/CumulusCI 
cd CumulusCI
git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
nosetests --with-tap --tap-stream --with-coverage --cover-package=cumulusci
coveralls

# Clone the CumulusCI-Test repo to run test builds against it with cci
echo "------------------------------------------"
echo "Running test builds against CumulusCI-Test"
echo "------------------------------------------"
echo ""
echo "Cloning https://github.com/SalesforceFoundation/CumulusCI-Test"
git clone https://github.com/SalesforceFoundation/CumulusCI-Test
cd CumulusCI-Test
if [ $HEROKU_TEST_RUN_BRANCH -eq "master" ]; then
    echo "1...4"
    cci flow run ci_feature --org scratch --delete-org | tee cci.log
    exit_status=$?
    if [ $exit_status -eq 0 ]; then
        echo "ok 1 - Successfully ran ci_feature"
    else
        echo "not ok 1 - Failed ci_feature: `tail -1 cci.log`"
    fi
        
    cci flow run ci_master --org packaging | tee -a cci.log
    exit_status=$?
    if [ $exit_status -eq 0 ]; then
        echo "ok 2 - Successfully ran ci_master"
    else
        echo "not ok 2 - Failed ci_master: `tail -1 cci.log`"
    fi
    cci flow run release_beta --org packaging | tee -a cci.log
    exit_status=$?
    if [ $exit_status -eq 0 ]; then
        echo "ok 3 - Successfully ran release_beta"
    else
        echo "not ok 3 - Failed release_beta: `tail -1 cci.log`"
    fi
    cci flow run ci_beta --org scratch --delete-org | tee -a cci.log
    exit_status=$?
    if [ $exit_status -eq 0 ]; then
        echo "ok 4 - Successfully ran ci_beta"
    else
        echo "not ok 4 - Failed ci_beta: `tail -1 cci.log`"
    fi

else
    echo "1...1"
    cci flow run ci_feature --org scratch --delete-org
    exit_status=$?
    if [ $exit_status -eq 0 ]; then
        echo "ok 1 - Successfully ran ci_feature"
    else
        echo "not ok 1 - Failed ci_feature: `tail -1 cci.log`"
    fi
fi


{'fraction_non_alphanumeric': 0.12409012131715771, 'fraction_numerical': 0.008318890814558059, 'mean_word_length': 2.6210790464240903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '2790657', 'n_tokens_mistral': 983, 'n_tokens_neox': 920, 'n_words': 324}