<commit_before>language: php

php:
  - 5.3
  - 5.4

env:
 - DB=mysql
 - DB=pgsql
 - DB=sqlite

before_script:
  - wget http://getcomposer.org/composer.phar
  - php composer.phar install --dev
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database redkite_test;'; fi"
  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database redkite_test;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'sqlite' ]; then php app/console redkitecms:install --driver=sqlite --host=localhost --database=redkite --no-interaction; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then php app/console redkitecms:install --driver=mysql --host=localhost --port=3306 --database=redkite --user=root --password= --no-interaction; fi"
  - sh -c "if [ '$DB' = 'pgsql' ]; then php app/console redkitecms:install --driver=pgsql --host=localhost --port=5432 --database=redkite --user=postgres --password= --no-interaction; fi"
  - sh -c "php app/console propel:sql:insert --force --env=rkcms_test"

script: phpunit -c app

notifications:
  email:
    - <EMAIL><commit_msg>updated travis configuration<commit_after>language: php

php:
  - 5.3
  - 5.4

env:
 - DB=mysql
 - DB=pgsql
 - DB=sqlite

before_script:
  - wget http://getcomposer.org/composer.phar
  - php composer.phar install --dev --prefer-dist
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database redkite_test;'; fi"
  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database redkite_test;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'sqlite' ]; then php app/console redkitecms:install --driver=sqlite --host=localhost --database=redkite --no-interaction; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then php app/console redkitecms:install --driver=mysql --host=localhost --port=3306 --database=redkite --user=root --password= --no-interaction; fi"
  - sh -c "if [ '$DB' = 'pgsql' ]; then php app/console redkitecms:install --driver=pgsql --host=localhost --port=5432 --database=redkite --user=postgres --password= --no-interaction; fi"
  - sh -c "php app/console propel:sql:insert --force --env=rkcms_test"

script: phpunit -c app

notifications:
  email:
    - <EMAIL>
{'fraction_non_alphanumeric': 0.17747278750591575, 'fraction_numerical': 0.011358258400378608, 'mean_word_length': 3.219560878243513, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1239825', 'n_tokens_mistral': 822, 'n_tokens_neox': 789, 'n_words': 210}