<commit_before>language: java

# Skip the default install step
install: true

# Only run checkstyle and build the example projects in JDK8
script:
  - jdk_switcher use oraclejdk8
  - ./gradlew assemble
  - ./gradlew check
  - jdk_switcher use oraclejdk7
  - ./gradlew clean
  - ./gradlew :assemble
  - ./gradlew :test
  - jdk_switcher use openjdk7
  - ./gradlew clean
  - ./gradlew :assemble
  - ./gradlew :test
  - jdk_switcher use openjdk6
  - ./gradlew clean
  - ./gradlew :assemble
  - ./gradlew :test<commit_msg>Use job matrix for builds, update JDK versions (#60)<commit_after>sudo: required
language: java
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/
install: ./gradlew :assemble

jobs:
  include:
  - stage: test
    jdk: openjdk8
    script: ./gradlew check :test
  # - stage: test                # Disabled due to SSL errors on Travis
  #   jdk: openjdk7              # when downloading gradle
  #   script: ./gradlew :test
  - stage: test
    jdk: oraclejdk9
    script: ./gradlew check :test
  - stage: test
    jdk: oraclejdk8
    script: ./gradlew check :test
{'fraction_non_alphanumeric': 0.11120196238757155, 'fraction_numerical': 0.01062959934587081, 'mean_word_length': 2.5789473684210527, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '43697', 'n_tokens_mistral': 455, 'n_tokens_neox': 422, 'n_words': 122}