<commit_before>sudo: false

dist: trusty

cache:
  apt: true

language: php

## Cache composer downloads.
cache:
  directories:
    # Cache directory for older Composer versions.
    - $HOME/.composer/cache/files
    # Cache directory for more recent Composer versions.
    - $HOME/.cache/composer/files

php:
  - 7.1
  - nightly
  - hhvm

matrix:
  fast_finish: true
  include:
    - php: 7.2
      env: EXTRA_CHECKS=1
    - php: 7.3
      env: COVERAGE=1
    - php: 7.0
      env: COVERAGE=1
      dist: precise
  allow_failures:
    - php: hhvm
    - php: nightly

before_install:
  # Speed up build time by disabling Xdebug when its not needed.
  - if [[ $COVERAGE != "1" ]]; then phpenv config-rm xdebug.ini || echo 'No xdebug config.'; fi
  ## Packages
  - sudo apt-get -qq update

before_script:
  ## Composer
  - composer self-update
  - composer install --prefer-dist
  ## PHPDocumentor
  ## - mkdir -p build/docs
  ## - mkdir -p build/coverage
<commit_msg>Build for PHP 7.4, drop hhvm build<commit_after>sudo: false

dist: trusty

cache:
  apt: true

language: php

## Cache composer downloads.
cache:
  directories:
    # Cache directory for older Composer versions.
    - $HOME/.composer/cache/files
    # Cache directory for more recent Composer versions.
    - $HOME/.cache/composer/files

php:
  - 7.1
  - 7.4snapshot
  - nightly

matrix:
  fast_finish: true
  include:
    - php: 7.2
      env: EXTRA_CHECKS=1
    - php: 7.3
      env: COVERAGE=1
    - php: 7.0
      env: COVERAGE=1
  allow_failures:
    - php: nightly

before_install:
  # Speed up build time by disabling Xdebug when its not needed.
  - if [[ $COVERAGE != "1" ]]; then phpenv config-rm xdebug.ini || echo 'No xdebug config.'; fi
  ## Packages
  - sudo apt-get -qq update

before_script:
  ## Composer
  - composer self-update
  - composer install --prefer-dist
  ## PHPDocumentor
  ## - mkdir -p build/docs
  ## - mkdir -p build/coverage

{'fraction_non_alphanumeric': 0.1101871101871102, 'fraction_numerical': 0.014553014553014554, 'mean_word_length': 2.519195612431444, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '42857', 'n_tokens_mistral': 709, 'n_tokens_neox': 682, 'n_words': 200}