<commit_before>language: java

sudo: false

notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: change
    on_failure: always

matrix:
  include:
    # On OSX, run with default JDK only.
    - os: osx
      env: MAVEN_OVERRIDE=""
    # On Linux, run with specific JDKs only.
    - os: linux
      env: CUSTOM_JDK="oraclejdk8" MAVEN_OVERRIDE="-DforkCount=0"
    - os: linux
      env: CUSTOM_JDK="oraclejdk7" MAVEN_OVERRIDE="-DforkCount=0"
    - os: linux
      env: CUSTOM_JDK="openjdk7" MAVEN_OVERRIDE="-DforkCount=0"

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi

install:
  - travis_retry mvn install clean -U -DskipTests=true

script:
  - travis_retry mvn $MAVEN_OVERRIDE install -U
  - travis_retry travis/test_wordcount.sh<commit_msg>Send travis-ci emails to their default recipients<commit_after>language: java

sudo: false

notifications:
  email:
    # Group email notifications are disabled for now, since we cannot do it on a per-branch basis.
    # Right now, it would trigger a notification for each fork, which generates a lot of spam.
    # recipients:
    #  - <EMAIL>
    on_success: change
    on_failure: always

matrix:
  include:
    # On OSX, run with default JDK only.
    - os: osx
      env: MAVEN_OVERRIDE=""
    # On Linux, run with specific JDKs only.
    - os: linux
      env: CUSTOM_JDK="oraclejdk8" MAVEN_OVERRIDE="-DforkCount=0"
    - os: linux
      env: CUSTOM_JDK="oraclejdk7" MAVEN_OVERRIDE="-DforkCount=0"
    - os: linux
      env: CUSTOM_JDK="openjdk7" MAVEN_OVERRIDE="-DforkCount=0"

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi

install:
  - travis_retry mvn install clean -U -DskipTests=true

script:
  - travis_retry mvn $MAVEN_OVERRIDE install -U
  - travis_retry travis/test_wordcount.sh
{'fraction_non_alphanumeric': 0.11034820990681707, 'fraction_numerical': 0.005885237861696911, 'mean_word_length': 3.4155844155844157, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2296105', 'n_tokens_mistral': 819, 'n_tokens_neox': 772, 'n_words': 194}