<commit_before>dist: trusty
sudo: false

language: php

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

matrix:
  fast_finish: true
  allow_failures:
    - php: nightly

install:
  - if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
  - if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi
  - echo date.timezone = Europe/Berlin >> $INI_FILE
  - echo memory_limit = -1 >> $INI_FILE
  - composer update

script:
  - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml

after_success:
  # Scrutinizer
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.xml
  # CodeCov
  - bash <(curl -s https://codecov.io/bash)<commit_msg>Run PHP 5.3 on Ubuntu Precise<commit_after>dist: trusty
sudo: false

language: php

matrix:
  include:
    - php: hhvm
    - php: nightly
    - php: 7.2
    - php: 7.1
    - php: 7.0
    - php: 5.6
    - php: 5.5
    - php: 5.4
    - php: 5.3
      dist: precise
  fast_finish: true
  allow_failures:
    - php: nightly

install:
  - if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
  - if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi
  - echo date.timezone = Europe/Berlin >> $INI_FILE
  - echo memory_limit = -1 >> $INI_FILE
  - composer update

script:
  - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml

after_success:
  # Scrutinizer
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.xml
  # CodeCov
  - bash <(curl -s https://codecov.io/bash)
{'fraction_non_alphanumeric': 0.14656084656084656, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 2.8048289738430583, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '283859', 'n_tokens_mistral': 810, 'n_tokens_neox': 762, 'n_words': 158}