<commit_before>language: php
php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0

 matrix:
  include:
    - php: 5.3
      env: HPROSE_EVENT_EXT=libevent
    - php: 5.4
      env: HPROSE_EVENT_EXT=event
    - php: 5.5
      env: HPROSE_EVENT_EXT=event
    - php: 5.6
      env: HPROSE_EVENT_EXT=event
    - php: 7.0
      env: HPROSE_EVENT_EXT=event

before_script:
  - if [ "$HPROSE_EVENT_EXT" != "libevent" ]; then
  - git clone https://bitbucket.org/osmanov/pecl-event.git
  - cd pecl-event
  - phpize
  - ./configure --with-event-core --with-event-extra --enable-event-debug
  - make
  - make install
  - echo "extension = event.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - cd ..
  - else
  - pecl install libevent
  - echo "extension = libevent.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - fi
  - composer install
  - cd tests

script: phpunit -v<commit_msg>update .travis.yml<commit_after>language: php
php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0

before_script:
  - if [[ $TRAVIS_PHP_VERSION = '5.3' ]]; then pecl install libevent; fi
  - if [[ $TRAVIS_PHP_VERSION = '5.3' ]]; echo "extension = libevent.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then git clone https://bitbucket.org/osmanov/pecl-event.git; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then cd pecl-event; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then phpize; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then ./configure --with-event-core --with-event-extra --enable-event-debug; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then make; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then make install; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then echo "extension = event.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
  - if [[ $TRAVIS_PHP_VERSION != '5.3' ]]; then cd ..; fi
  - composer install
  - cd tests

script: phpunit -v
{'fraction_non_alphanumeric': 0.1768355739400207, 'fraction_numerical': 0.025853154084798345, 'mean_word_length': 2.616822429906542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '442648', 'n_tokens_mistral': 815, 'n_tokens_neox': 787, 'n_words': 163}