<commit_before>language: scala

dist: bionic

branches:
  only:
    - master

cache:
  directories:
    - "$HOME/.coursier"
    - "$HOME/.ivy2/cache"
    - "$HOME/.ivy2/local"
    - "$HOME/.jabba/jdk"
    - "$HOME/.sbt"

env:
  global:
    # Sonatype credentials
    - secure: <KEY>
    - <KEY>VG8WVKFOrTOLTAmfWFCscg+qutgTrfasF12EM=
    # set version of JDK
    - TRAVIS_JDK=adopt@1.8.0-232
    - SCALA_VERSION=2.13.0
    - COURSIER_CACHE=$HOME/.coursier

jobs:
  include:
    - name: "Test Scala 2.12"
      env:
        - SCALA_VERSION=2.12.10
        - SCRIPT=test
    - name: "Test Scala 2.13"
      env:
        - SCALA_VERSION=2.13.0
        - SCRIPT=test
    - name: "Test Scala Code Style"
      env:
        - SCRIPT=test-code-style

script:
  - bin/$SCRIPT $SCALA_VERSION

services:
  - redis-server
  - docker

before_install:
  - curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh

install:
  - jabba install "$TRAVIS_JDK" && jabba use "$TRAVIS_JDK" && java -Xmx32m -version<commit_msg>Always use latest java 8 version on travis<commit_after>language: scala

dist: bionic

branches:
  only:
    - master

cache:
  directories:
    - "$HOME/.coursier"
    - "$HOME/.ivy2/cache"
    - "$HOME/.ivy2/local"
    - "$HOME/.jabba/jdk"
    - "$HOME/.sbt"

env:
  global:
    # Sonatype credentials
    - secure: <KEY>
    - secure: <KEY>
    # set version of JDK
    - TRAVIS_JDK_MIN=1.8.0-0
    - TRAVIS_JDK_MAX=1.9.0-0
    - SCALA_VERSION=2.13.0
    - COURSIER_CACHE=$HOME/.coursier

jobs:
  include:
    - name: "Test Scala 2.12"
      env:
        - SCALA_VERSION=2.12.10
        - SCRIPT=test
    - name: "Test Scala 2.13"
      env:
        - SCALA_VERSION=2.13.0
        - SCRIPT=test
    - name: "Test Scala Code Style"
      env:
        - SCRIPT=test-code-style

script:
  - bin/$SCRIPT $SCALA_VERSION

services:
  - redis-server
  - docker

before_install:
  - curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh

install:
  - TRAVIS_JDK=`jabba ls-remote "adopt@>=$TRAVIS_JDK_MIN < $TRAVIS_JDK_MAX" --latest=minor`
  - jabba install "$TRAVIS_JDK" && jabba use "$TRAVIS_JDK" && java -Xmx32m -version
{'fraction_non_alphanumeric': 0.1460093896713615, 'fraction_numerical': 0.03004694835680751, 'mean_word_length': 2.190119760479042, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '2579869', 'n_tokens_mistral': 965, 'n_tokens_neox': 891, 'n_words': 159}