<commit_before>#!/bin/bash

# Example setting to use at command line for testing:
# export TRAVIS_SCALA_VERSION=2.10.5;export TRAVIS_PULL_REQUEST="false";export TRAVIS_BRANCH="master"

# if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
#   export publish_cmd="publish gitSnapshots publish"
# fi

sbt_cmd="sbt ++$TRAVIS_SCALA_VERSION"
scala_js="$sbt_cmd coverageOff validateJS clean"
scala_jvm="$sbt_cmd clean coverage validateJVM coverageReport coverageOff"
run_cmd="$scala_js && $scala_jvm"

eval $run_cmd
<commit_msg>For JS, test projects individually in travis.<commit_after>#!/bin/bash

# Example setting to use at command line for testing:
# export TRAVIS_SCALA_VERSION=2.10.5;export TRAVIS_PULL_REQUEST="false";export TRAVIS_BRANCH="master"

# if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
#   export publish_cmd="publish gitSnapshots publish"
# fi

sbt_cmd="sbt ++$TRAVIS_SCALA_VERSION"
scala_js="$sbt_cmd macrosJS/test && $sbt_cmd coreJS/test && $sbt_cmd extrasJS/test && $sbt_cmd lawsJS/test && $sbt_cmd testsJS/test"
scala_jvm="$sbt_cmd clean coverage validateJVM coverageReport coverageOff"
run_cmd="$scala_js && $scala_jvm"

eval $run_cmd

{'fraction_non_alphanumeric': 0.13473520249221183, 'fraction_numerical': 0.006230529595015576, 'mean_word_length': 6.9813664596273295, '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': '2234576', 'n_tokens_mistral': 494, 'n_tokens_neox': 473, 'n_words': 100}