<commit_before>sudo: false

language: java

jdk:
  - oraclejdk8

# https://github.com/travis-ci/travis-ci/issues/3259#issuecomment-130860338
addons:
  apt:
    packages:
      - oracle-java8-installer

# install: mvn -B install -U -DskipTests=true -f $ROOT_POM

# https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
# script: travis_wait 60 mvn -B verify -U -Dmaven.javadoc.skip=true -f $ROOT_POM
script: travis_wait 60 mvn -B verify -U -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Danimal.sniffer.skip=true -f $ROOT_POM

after_success:
  - util/deploy_snapshot.sh
  - util/update_snapshot_docs.sh

after_failure:
  - util/print_surefire_reports.sh

cache:
  directories:
  - $HOME/.m2

env:
  global:
    - secure: "<KEY>
    - secure: "<KEY>
    - secure: "<KEY>
  matrix:
    - ROOT_POM="pom.xml"
    - ROOT_POM="android/pom.xml"

branches:
  only:
    - master
    - /^release.*$/<commit_msg>Don't build for Android<commit_after>sudo: false

language: java

jdk:
  - oraclejdk8

# https://github.com/travis-ci/travis-ci/issues/3259#issuecomment-130860338
addons:
  apt:
    packages:
      - oracle-java8-installer

# install: mvn -B install -U -DskipTests=true -f $ROOT_POM

# https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
# script: travis_wait 60 mvn -B verify -U -Dmaven.javadoc.skip=true -f $ROOT_POM
script: travis_wait 60 mvn -B verify -U -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Danimal.sniffer.skip=true -f $ROOT_POM

after_success:
  - util/deploy_snapshot.sh
  - util/update_snapshot_docs.sh

after_failure:
  - util/print_surefire_reports.sh

cache:
  directories:
  - $HOME/.m2

env:
  global:
    - secure: "<KEY>
    - secure: "<KEY>
    - secure: "<KEY>
  matrix:
    - ROOT_POM="pom.xml"
#    - ROOT_POM="android/pom.xml"

branches:
  only:
    - master
    - /^release.*$/
{'fraction_non_alphanumeric': 0.14427600627286985, 'fraction_numerical': 0.020909566126502875, 'mean_word_length': 3.1790393013100435, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3767571', 'n_tokens_mistral': 819, 'n_tokens_neox': 773, 'n_words': 132}