<commit_before>language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - hhvm

matrix:
  fast_finish: true

install:
  - composer install --prefer-dist --no-interaction

before_script:
  - |
    if [ $TRAVIS_PHP_VERSION = '5.4' ]; then
      composer require codeclimate/php-test-reporter --dev
      composer require scrutinizer/ocular --dev
      PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
    fi

script:
  - phpunit --verbose $PHPUNIT_FLAGS

after_script:
  - |
    if [ $TRAVIS_PHP_VERSION = '5.4' ]; then
      CODECLIMATE_REPO_TOKEN=<KEY> ./vendor/bin/test-reporter
      vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml
    fi<commit_msg>test on the php nightly version<commit_after>language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - hhvm
  - nightly

matrix:
  fast_finish: true
  allow_failures:
    - php: nightly

install:
  - composer install --prefer-dist --no-interaction

before_script:
  - |
    if [ $TRAVIS_PHP_VERSION = '5.4' ]; then
      composer require codeclimate/php-test-reporter --dev
      composer require scrutinizer/ocular --dev
      PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
    fi

script:
  - phpunit --verbose $PHPUNIT_FLAGS

after_script:
  - |
    if [ $TRAVIS_PHP_VERSION = '5.4' ]; then
      CODECLIMATE_REPO_TOKEN=480c32e8378bd255a6a12e4a1821d8aac01d85e701d1dfc5935bd1727fcb921d ./vendor/bin/test-reporter
      vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml
    fi
{'fraction_non_alphanumeric': 0.11842105263157894, 'fraction_numerical': 0.04473684210526316, 'mean_word_length': 2.7279411764705883, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1239965', 'n_tokens_mistral': 630, 'n_tokens_neox': 594, 'n_words': 106}