<commit_before>language: php

php:
  - 5.5
  - 5.6
  - 7
  - hhvm
  - hhvm-nightly

matrix:
  allow_failures:
    - php: hhvm-nightly
    
before_script:
  - composer update --prefer-dist
  
script:
  - vendor/bin/phpunit --coverage-clover=coverage.clover
  - vendor/bin/php-cs-fixer fix -v --dry-run

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover<commit_msg>travis modifications<commit_after>language: php

php:
  - 5.5
  - 5.6
  - 7
  - hhvm
  - hhvm-nightly

matrix:
  fast_finish: true
  allow_failures:
    - php: hhvm-nightly
    
before_script:
  - composer update --prefer-dist
  
script:
  - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
  - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then PHP_CS_FIXER_FLAGS="fix -v --dry-run --diff --config-file=.php_cs"; else PHP_CS_FIXER_FLAGS="help"; fi  
  - vendor/bin/phpunit ${PHPUNIT_FLAGS}
  - vendor/bin/php-cs-fixer ${PHP_CS_FIXER_FLAGS}

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
{'fraction_non_alphanumeric': 0.13937867338371115, 'fraction_numerical': 0.011754827875734676, 'mean_word_length': 3.0821917808219177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '283377', 'n_tokens_mistral': 499, 'n_tokens_neox': 480, 'n_words': 82}