<commit_before>language: php

php:
    - 5.5
    - 5.6
    - 7.0
    - hhvm

sudo: false

before_install:
  - composer self-update

install:
  - travis_retry composer install --no-interaction --prefer-source

script:
  - phpunit
  - sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/ruleset.xml .; fi"

matrix:
  allow_failures:
    - php: hhvm
    - php: 7.0
  fast_finish: true


notifications:
    on_success: never
    on_failure: always<commit_msg>Changed travis.yml<commit_after>language: php

services:
  - memcached

env:
  global:
    - MEMCACHE_HOST=127.0.0.1
    - MEMCACHE_PORT=11211

sudo: false

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

matrix:
  fast_finish: true
  include:
    - php: 5.4
    - php: 5.5
    - php: 5.6
    - php: 7.0
      env: PHPCS=true
    - php: hhvm


before_install:
  - composer self-update

install:
  - travis_retry composer install --no-interaction

before_script:
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
  - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true
  - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true


script:
  - vendor/bin/phpunit
  - if [[ "$PHPCS" == "true" ]]; then vendor/bin/phpcs src --standard=build/phpcs/ruleset.xml -np; fi


notifications:
    on_success: never
    on_failure: always
{'fraction_non_alphanumeric': 0.1575028636884307, 'fraction_numerical': 0.020618556701030927, 'mean_word_length': 2.9170403587443947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 1, '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': '5948712', 'n_tokens_mistral': 713, 'n_tokens_neox': 678, 'n_words': 139}