<commit_before>language: php
services:
- memcached
php:
- 5.4
- 5.5
- 5.6
# - hhvm
env:
  - DB=mysql                         # only database tests against mysql
  - DB=sqlite    # only database tests against postgresql
  - DB=pgsql
addons:
  postgresql: "9.3"
install:
  - rm -rf vendor/corneltek/serializerkit
  - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - phpenv config-add tests/php.ini
  - phpenv rehash
  - echo 'date.timezone = "Asia/Taipei"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - composer self-update
  - composer install
before_script:
  # - psql -c "create database testing;" -U postgres
  # - mysql -uroot -e "create database testing charset utf8;"
  - cp -v db/config/database.travis-ci.yml db/config/database.yml
  - php bin/lazy build-conf -f db/config/database.yml
  - php bin/lazy db create -D=$DB
  - php bin/lazy schema build -f
  - php bin/lazy schema build -f src # build meta model class
  - php bin/lazy sql --rebuild -D=$DB
script:
  - phpunit -c phpunit-travis-ci.xml
after_success:
  - php vendor/bin/coveralls -v
matrix:
  fast_finish: true
  allow_failures:
    - php: hhvm
    - php: 5.6
# matrix:
#   exclude:
#     - php: hhvm
#       env: DB=pgsql DB_USER=postgres DB_NAME=postgres  # driver currently unsupported by HHVM
#     - php: hhvm<commit_msg>prepare database<commit_after>language: php
services:
- memcached
php:
- 5.4
- 5.5
- 5.6
# - hhvm
env:
  - DB=mysql                         # only database tests against mysql
  - DB=sqlite    # only database tests against postgresql
  - DB=pgsql
addons:
  postgresql: "9.3"
install:
  - rm -rf vendor/corneltek/serializerkit
  - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - phpenv config-add tests/php.ini
  - phpenv rehash
  - echo 'date.timezone = "Asia/Taipei"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - composer self-update
  - composer install
before_script:
  - psql -c "create database testing;" -U postgres
  - mysql -uroot -e "create database testing charset utf8;"
  - cp -v db/config/database.travis-ci.yml db/config/database.yml
  - php bin/lazy build-conf -f db/config/database.yml
  - php bin/lazy db create -D=$DB
  - php bin/lazy schema build -f
  - php bin/lazy schema build -f src # build meta model class
  - php bin/lazy sql --rebuild -D=$DB
script:
  - phpunit -c phpunit-travis-ci.xml
after_success:
  - php vendor/bin/coveralls -v
matrix:
  fast_finish: true
  allow_failures:
    - php: hhvm
    - php: 5.6
# matrix:
#   exclude:
#     - php: hhvm
#       env: DB=pgsql DB_USER=postgres DB_NAME=postgres  # driver currently unsupported by HHVM
#     - php: hhvm
{'fraction_non_alphanumeric': 0.12985228443833735, 'fraction_numerical': 0.007557540364136035, 'mean_word_length': 2.7333333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1005120', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1069, 'n_words': 270}