<commit_before>sudo: required
dist: trusty
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/
    - $HOME/.groovy/grapes/

env:
  global:
    - secure: <KEY>
    - <KEY>
    - secure: <KEY>
    - secure: <KEY>
    - ALL_GRADLE_VERSIONS=2.0,2.1,2.2.1,2.3,2.4,2.5,2.6,2.7,2.8,2.9,2.10,2.11,2.12,2.13,2.14.1,3.0,3.1,3.2.1,3.3,3.4.1,3.5.1,4.0.2,4.1,4.2.1,4.3.1,4.4.1,4.5.1,4.6,4.7,4.8
    - PARALLEL_INTEG_TEST_COUNT=3

jdk: openjdk8
install: true  # overwrite default install step (./gradlew assemble)

jobs:
  include:
    - stage: unit tests
      script: ./gradlew test
    - stage: integration tests
      env: INDEX=0
      script: scripts/travis-integ-tests.sh
    - env: INDEX=1
      script: scripts/travis-integ-tests.sh
    - env: INDEX=2
      script: scripts/travis-integ-tests.sh
    - jdk: oraclejdk8
      env: GRADLE_VERSIONS=2.0,3.0,4.0
      script: scripts/travis-integ-tests.sh
    - jdk: oraclejdk9
      # Gradle has runtime support for Java 9 since v4.2.1
      # (see https://blog.gradle.org/java-9-support-update)
      env: GRADLE_VERSIONS=4.2.1,4.3.1,4.4.1,4.5.1,4.6,4.7,4.8
      script: scripts/travis-integ-tests.sh
    - jdk: openjdk10
      env: GRADLE_VERSIONS=4.2.1,4.3.1,4.4.1,4.5.1,4.6,4.7,4.8
      script: scripts/travis-integ-tests.sh
    - stage: deploy
      if: (branch = master) AND (NOT (type = pull_request))
      script: ./gradlew publish
    - if: tag IS present
      script: ./gradlew publishPlugins -Dgradle.publish.key=$PLUGIN_PORTAL_KEY -Dgradle.publish.secret=$PLUGIN_PORTAL_SECRET
<commit_msg>Travis: add new test targets: openjdk 11, Gradle 4.9/4.10<commit_after>sudo: required
dist: trusty
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/
    - $HOME/.groovy/grapes/

env:
  global:
    - secure: <KEY>
    - secure: <KEY>
    - secure: <KEY>
    - secure: <KEY>=
    - ALL_GRADLE_VERSIONS=2.0,2.1,2.2.1,2.3,2.4,2.5,2.6,2.7,2.8,2.9,2.10,2.11,2.12,2.13,2.14.1,3.0,3.1,3.2.1,3.3,3.4.1,3.5.1,4.0.2,4.1,4.2.1,4.3.1,4.4.1,4.5.1,4.6,4.7,4.8,4.9,4.10.2
    - PARALLEL_INTEG_TEST_COUNT=3

jdk: openjdk8
install: true  # overwrite default install step (./gradlew assemble)

jobs:
  include:
    - stage: unit tests
      script: ./gradlew test
    - stage: integration tests
      env: INDEX=0
      script: scripts/travis-integ-tests.sh
    - env: INDEX=1
      script: scripts/travis-integ-tests.sh
    - env: INDEX=2
      script: scripts/travis-integ-tests.sh
    - jdk: oraclejdk8
      env: GRADLE_VERSIONS=2.0,3.0,4.0
      script: scripts/travis-integ-tests.sh
    - jdk: oraclejdk9
      # Gradle has runtime support for Java 9 since v4.2.1
      # (see https://blog.gradle.org/java-9-support-update)
      env: GRADLE_VERSIONS=4.2.1,4.3.1,4.4.1,4.5.1,4.6,4.7,4.8,4.9,4.10.2
      script: scripts/travis-integ-tests.sh
    - jdk: openjdk10
      env: GRADLE_VERSIONS=4.2.1,4.3.1,4.4.1,4.5.1,4.6,4.7,4.8,4.9,4.10.2
      script: scripts/travis-integ-tests.sh
    - jdk: openjdk11
      env: GRADLE_VERSIONS=4.9,4.10.2
      script: scripts/travis-integ-tests.sh
    - stage: deploy
      if: (branch = master) AND (NOT (type = pull_request))
      script: ./gradlew publish
    - if: tag IS present
      script: ./gradlew publishPlugins -Dgradle.publish.key=$PLUGIN_PORTAL_KEY -Dgradle.publish.secret=$PLUGIN_PORTAL_SECRET

{'fraction_non_alphanumeric': 0.16920099529997235, 'fraction_numerical': 0.08266519214818911, 'mean_word_length': 2.5435847208619, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3245655', 'n_tokens_mistral': 1672, 'n_tokens_neox': 1628, 'n_words': 239}