<commit_before>language: ruby

rvm:
  - "1.9.3"
#  - "2.0"
#  - "2.1"
  - "2.2"
#  - ruby-head

gemfile:
  - gemfiles/rails_4_2.gemfile
 # - gemfiles/rails_4_1.gemfile
  # - gemfiles/rails_4_0.gemfile
  # - gemfiles/rails_3_2.gemfile

before_install: gem install bundler

before_script:
  - cp config/database.travis.yml config/database.yml
  - cp config/database.travis.yml test/dummy/config/database.yml
  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS rails_db;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database rails_db;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS rails_db; fi"

cache: bundler

bundler_args: --without development --jobs=3 --retry=3 --path=../vendor/bundle

env:
  - DB=sqlite
  - DB=mysql
  - DB=postgresql

script:
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - bundle exec rake test

matrix:
  fast_finish: true<commit_msg>reset db<commit_after>language: ruby

rvm:
  - "1.9.3"
#  - "2.0"
#  - "2.1"
  - "2.2"
#  - ruby-head

gemfile:
  - gemfiles/rails_4_2.gemfile
 # - gemfiles/rails_4_1.gemfile
  # - gemfiles/rails_4_0.gemfile
  # - gemfiles/rails_3_2.gemfile

before_install: gem install bundler

before_script:
  - cp config/database.travis.yml config/database.yml
  - cp config/database.travis.yml test/dummy/config/database.yml
  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS rails_db;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database rails_db;' -U postgres; fi"
  - mysql -e "drop database if exists rails_db; create database IF NOT EXISTS rails_db;" -uroot

cache: bundler

bundler_args: --without development --jobs=3 --retry=3 --path=../vendor/bundle

env:
  - DB=sqlite
  - DB=mysql
  - DB=postgresql

script:
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - bundle exec rake test

matrix:
  fast_finish: true
{'fraction_non_alphanumeric': 0.14595152140278495, 'fraction_numerical': 0.019597730789066528, 'mean_word_length': 3.0585774058577404, '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': '852797', 'n_tokens_mistral': 817, 'n_tokens_neox': 789, 'n_words': 189}