<commit_before>language: php

branches:
  only:
    - 1.6
    - master
    - gh-pages

php:
  - 5.3
  - 5.4
  - 5.5
  - hhvm

env:
  - DB=mysql DB_USER=root

before_script:
  # MySQL
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS test; DROP SCHEMA IF EXISTS second_hand_books; DROP SCHEMA IF EXISTS contest; DROP DATABASE IF EXISTS reverse_bookstore; DROP SCHEMA IF EXISTS bookstore_schemas; SET FOREIGN_KEY_CHECKS = 1;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE test; CREATE SCHEMA bookstore_schemas; CREATE SCHEMA contest; CREATE SCHEMA second_hand_books; CREATE DATABASE reverse_bookstore;'; fi"

  # Composer
  - wget http://getcomposer.org/composer.phar
  - php composer.phar install --prefer-source

  - ./test/reset_tests.sh

script: phpunit

matrix:
  allow_failures:
    - php: hhvm<commit_msg>[travis] Update .travis.yml to reflect user and database names changes<commit_after>language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
#  - hhvm

services:
  - mysql

env:
  - DB=mysql DB_USER=propel1_test

before_script:
  # MySQL
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS propel1_test_bookstore; DROP DATABASE IF EXISTS propel1_test_bookstore_namespaced; DROP SCHEMA IF EXISTS propel1_test_schema_bookstore; DROP SCHEMA IF EXISTS propel1_test_schema_second_hand_books; DROP SCHEMA IF EXISTS propel1_test_schema_contest; DROP DATABASE IF EXISTS propel1_test_reverse_bookstore; SET FOREIGN_KEY_CHECKS = 1;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE propel1_test_bookstore;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE propel1_test_bookstore_namespaced;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE SCHEMA propel1_test_schema_bookstore;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE SCHEMA propel1_test_schema_second_hand_books;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE SCHEMA propel1_test_schema_contest;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE propel1_test_reverse_bookstore;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE USER \"propel1_test\"@\"localhost\";'; fi" 
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -u root -e 'GRANT ALL ON \`propel1\\_test\\_%\`.* TO \"propel1_test\"@\"localhost\";'; fi"

  # Composer
  - composer self-update
  - composer install --prefer-source

  - ./test/reset_tests.sh

script: phpunit

matrix:
  fast_finish: true
  allow_failures:
    - php: hhvm

cache:
  directories:
    - $HOME/.composer/cache
{'fraction_non_alphanumeric': 0.13184737438609748, 'fraction_numerical': 0.01360030222893842, 'mean_word_length': 3.5342465753424657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3973066', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1029, 'n_words': 282}