language: ruby

rvm:
  - 1.8.7
  - 1.9.2
  - 1.9.3

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: 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

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_tests;' -U postgres; fi"


language: ruby

rvm:
  - 1.8.7
  - 1.9.2
  - 1.9.3

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: 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

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"


Correct database name for Postgres.
Correct database name for Postgres.
