<commit_before>language: ruby

rvm:
  - 1.8.7
  - 1.9.2
  - 1.9.3
  - 2.0.0

gemfile:
  - gemfiles/activerecord_2_2.gemfile
  - gemfiles/activerecord_2_3.gemfile
  - gemfiles/activerecord_3_0.gemfile
  - gemfiles/activerecord_3_1.gemfile
  - gemfiles/activerecord_3_2.gemfile

env:
  - DB=mysql
  - DB=postgres

matrix:
  exclude:
    - rvm: 1.9.2
      gemfile: gemfiles/activerecord_2_2.gemfile
      env: DB=mysql
    - rvm: 1.9.3
      gemfile: gemfiles/activerecord_2_2.gemfile
      env: DB=mysql
    - rvm: 2.0.0
      gemfile: gemfiles/activerecord_2_2.gemfile
      env: DB=mysql
    - rvm: 1.9.2
      gemfile: gemfiles/activerecord_2_2.gemfile
      env: DB=postgres
    - rvm: 1.9.3
      gemfile: gemfiles/activerecord_2_2.gemfile
      env: DB=postgres
    - rvm: 2.0.0
      gemfile: gemfiles/activerecord_2_2.gemfile
      env: DB=postgres

before_script:
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database if not exists oauth2_test;'; fi"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database oauth2_test;' -U postgres; fi"

<commit_msg>Redesign the Travis build so each variation (Ruby version, Rails version, DB backend) is tested in isolation rather than producing a combinatorial explosion of build jobs.<commit_after>language: ruby

matrix:
  include:
    - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql    }

    - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=postgres }

    - { rvm: 1.8.7, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql    }
    - { rvm: 1.9.2, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql    }
    - { rvm: 2.0.0, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql    }

    - { rvm: 1.8.7, gemfile: gemfiles/activerecord_2_2.gemfile, env: DB=mysql    }
    - { rvm: 1.9.3, gemfile: gemfiles/activerecord_2_3.gemfile, env: DB=mysql    }
    - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_0.gemfile, env: DB=mysql    }
    - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_1.gemfile, env: DB=mysql    }
    - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql    }

before_script:
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database if not exists oauth2_test;'; fi"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database oauth2_test;' -U postgres; fi"


{'fraction_non_alphanumeric': 0.132284134410889, 'fraction_numerical': 0.045087196937473414, 'mean_word_length': 2.92, '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': '6360431', 'n_tokens_mistral': 1018, 'n_tokens_neox': 943, 'n_words': 203}