<commit_before>language: php

matrix:
    include:
        - php: 5.3
        - php: 5.4
        - php: 5.5
        - php: 5.6
        - php: 5.3
          env: components=low
        - php: 5.6
          env: components=high
        - php: hhvm
    allow_failures:
        - php: hhvm

env:
    global:
        - components=no

before_script:
  - composer self-update
  - if [ "$components" = "no" ]; then composer install -n; fi;
  - if [ "$components" = "high" ]; then composer update -n; fi;
  - if [ "$components" = "low" ]; then composer install -n --prefer-lowest --prefer-stable; fi;

script: phpunit -v --coverage-clover=coverage.clover

after_script:
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$components" = "high" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$components" = "low" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'<commit_msg>* upload only for low and high components<commit_after>language: php

matrix:
    include:
        - php: 5.3
        - php: 5.4
        - php: 5.5
        - php: 5.6
        - php: 5.3
          env: components=low
        - php: 5.6
          env: components=high
        - php: hhvm
    allow_failures:
        - php: hhvm

env:
    global:
        - components=no

before_script:
  - composer self-update
  - if [ "$components" = "no" ]; then composer install -n; fi;
  - if [ "$components" = "high" ]; then composer update -n; fi;
  - if [ "$components" = "low" ]; then composer install -n --prefer-lowest --prefer-stable; fi;

script: phpunit -v --coverage-clover=coverage.clover

after_script:
  - sh -c 'if [ "$components" = "high" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
  - sh -c 'if [ "$components" = "low" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
{'fraction_non_alphanumeric': 0.15619136960600374, 'fraction_numerical': 0.01125703564727955, 'mean_word_length': 2.418269230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '701786', 'n_tokens_mistral': 792, 'n_tokens_neox': 747, 'n_words': 190}