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

case "$TRAVIS_SBT_VERSION" in
  0.13.x) SWITCH_SBT_VERSION="";        SCRIPTED="scripted" ;;
     1.x) SWITCH_SBT_VERSION="^^1.0.0"; SCRIPTED=""         ;;
       *) echo >&2 "Aborting: Unknown TRAVIS_SBT_VERSION: $TRAVIS_SBT_VERSION"; exit 1; ;;
esac

[[ "$TRAVIS_PULL_REQUEST" == "false"
&& "$TRAVIS_BRANCH" == "master"
&& "$TRAVIS_SECURE_ENV_VARS" == "true"
]]
on_the_master_branch=$?

[[ "$TRAVIS_TAG" != ""
&& "$TRAVIS_SECURE_ENV_VARS" == "true"
]]
on_a_tag=$?

if [[ $on_the_master_branch == 0 || $on_a_tag == 0 ]]; then
  PUBLISH=publish
else
  PUBLISH=publishLocal
fi

sbt "$SWITCH_SBT_VERSION" test "$SCRIPTED" mimaReportBinaryIssues "$PUBLISH"<commit_msg>Enable scripted on sbt 1.x<commit_after>#!/usr/bin/env bash

case "$TRAVIS_SBT_VERSION" in
  0.13.x) SWITCH_SBT_VERSION="";        ;;
     1.x) SWITCH_SBT_VERSION="^^1.0.0"; ;;
       *) echo >&2 "Aborting: Unknown TRAVIS_SBT_VERSION: $TRAVIS_SBT_VERSION"; exit 1; ;;
esac

[[ "$TRAVIS_PULL_REQUEST" == "false"
&& "$TRAVIS_BRANCH" == "master"
&& "$TRAVIS_SECURE_ENV_VARS" == "true"
]]
on_the_master_branch=$?

[[ "$TRAVIS_TAG" != ""
&& "$TRAVIS_SECURE_ENV_VARS" == "true"
]]
on_a_tag=$?

if [[ $on_the_master_branch == 0 || $on_a_tag == 0 ]]; then
  PUBLISH=publish
else
  PUBLISH=publishLocal
fi

sbt "$SWITCH_SBT_VERSION" test scripted mimaReportBinaryIssues "$PUBLISH"
{'fraction_non_alphanumeric': 0.1836734693877551, 'fraction_numerical': 0.016763848396501458, 'mean_word_length': 5.129464285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2710425', 'n_tokens_mistral': 634, 'n_tokens_neox': 585, 'n_words': 95}