<commit_before>dist: xenial

language: java

env:
  matrix:
    - REDIS=unstable
    - PROFILE=jmh
    - REDIS=5.0
    - REDIS=4.0.11
    - REDIS=3.2.11

sudo: false

before_install:
  - if [[ ! -f downloads/stunnel-5.54.tar.gz ]]; then wget -O downloads/stunnel-5.54.tar.gz ftp://ftp.stunnel.org/stunnel/archive/5.x/stunnel-5.54.tar.gz; fi
  - if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf downloads/stunnel-5.54.tar.gz; fi
  - if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
  - export PATH="$PATH:$(pwd)/stunnel-5.54/src"

install: make prepare ssl-keys

script: make test-coverage PROFILE=${PROFILE:-ci}

after_success:
  - bash <(curl -s https://codecov.io/bash)

cache:
  directories:
    - '$HOME/.m2/repository'
    - '$TRAVIS_BUILD_DIR/downloads'
    - '$TRAVIS_BUILD_DIR/stunnel-5.54'

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/7c2a962829d225c47a31
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false<commit_msg>Extend build config to build against multiple Java versions #1247<commit_after>dist: xenial

os: linux

language: java

jobs:
  include:
    - jdk: openjdk8
      env:
        - JDK='OpenJDK 8'
        - REDIS=unstable
    - jdk: openjdk8
      env:
        - JDK='OpenJDK 8'
        - REDIS=jmh
    - jdk: openjdk8
      env:
        - JDK='OpenJDK 8'
        - REDIS=5.0.8
    - jdk: openjdk8
      env:
        - JDK='OpenJDK 8'
        - REDIS=4.0.14
    - jdk: openjdk8
      env:
        - JDK='OpenJDK 8'
        - REDIS=3.2.13
    - jdk: openjdk11
      env: JDK='OpenJDK 11'
    - env: JDK='OpenJDK 12'
      before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 12
    - env: JDK='OpenJDK 13'
      before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 13
    - env: JDK='OpenJDK 14'
      before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 14
    - env: JDK='OpenJDK EA'
      before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh
  allow_failures:
    - env: JDK='OpenJDK EA'

before_install:
  - if [[ ! -f downloads/stunnel-5.54.tar.gz ]]; then wget -O downloads/stunnel-5.54.tar.gz ftp://ftp.stunnel.org/stunnel/archive/5.x/stunnel-5.54.tar.gz; fi
  - if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf downloads/stunnel-5.54.tar.gz; fi
  - if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
  - export PATH="$PATH:$(pwd)/stunnel-5.54/src"

install: make prepare ssl-keys

script: make test-coverage PROFILE=${PROFILE:-ci}

after_success:
  - bash <(curl -s https://codecov.io/bash)

cache:
  directories:
    - '$HOME/.m2/repository'
    - 'downloads'
    - 'stunnel-5.54'

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/7c2a962829d225c47a31
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
{'fraction_non_alphanumeric': 0.16093023255813954, 'fraction_numerical': 0.04310077519379845, 'mean_word_length': 2.548954895489549, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7335489', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1282, 'n_words': 234}