<commit_before>language: php

sudo: false

git:
  depth: 1

env:
  global:
    - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader"
    - TASK_TESTS=1
    - TASK_TESTS_COVERAGE=0
    - TASK_CS=1

matrix:
  fast_finish: true
  include:
    - php: 7.0
      env: TASK_TESTS_COVERAGE=1
    - php: 7.0
      env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
    - php: 7.1
    - php: nightly
    # Use the newer stack for HHVM
    - php:   hhvm-stable
      sudo:  required
      dist:  trusty
      group: edge
      env: COMPOSER_FLAGS="--ignore-platform-reqs"
  allow_failures:
    - php: nightly
    - php: hhvm-stable

cache:
  directories:
    - $HOME/.composer/cache

before_install:
  # Configure: check phpdbg
  - phpdbg --version 2> /dev/null || { echo 'No phpdbg'; export TASK_TESTS_COVERAGE=0; }

  # Configure: turn off XDebug
  - phpenv config-rm xdebug.ini || return 0

  # Tasks: validate tasks configuration<commit_msg>ignore cs check on nightly because cs-fixer doesn't work there yet<commit_after>language: php

sudo: false

git:
  depth: 1

env:
  global:
    - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader"
    - TASK_TESTS=1
    - TASK_TESTS_COVERAGE=0
    - TASK_CS=1

matrix:
  fast_finish: true
  include:
    - php: 7.0
      env: TASK_TESTS_COVERAGE=1
    - php: 7.0
      env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
    - php: 7.1
    - php: nightly
    # Use the newer stack for HHVM
    - php:   hhvm-stable
      sudo:  required
      dist:  trusty
      group: edge
      env: COMPOSER_FLAGS="--ignore-platform-reqs"
  allow_failures:
    - php: nightly
      env: TASK_CS=0
    - php: hhvm-stable

cache:
  directories:
    - $HOME/.composer/cache

before_install:
  # Configure: check phpdbg
  - phpdbg --version 2> /dev/null || { echo 'No phpdbg'; export TASK_TESTS_COVERAGE=0; }

  # Configure: turn off XDebug
  - phpenv config-rm xdebug.ini || return 0

  # Tasks: validate tasks configuration
{'fraction_non_alphanumeric': 0.111, 'fraction_numerical': 0.0145, 'mean_word_length': 2.547872340425532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1005082', 'n_tokens_mistral': 797, 'n_tokens_neox': 749, 'n_words': 175}