rvm:
  - 1.9.2
  - 1.9.3

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - "git clone git://github.com/n1k0/casperjs.git"
  - "cd casperjs"
  - "git checkout tags/0.6.5"
  - "sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs"
  - "bundle exec rake db:reset"

script: "bundle exec rake"

notifications:
  recipients:
    - joecorcoran@gmail.com

gemfile:
  - "gemfiles/rails_3_1.gemfile"
  - "gemfiles/rails_3_2.gemfile"

branches:
  only:
    - master
    - engine

rvm:
  - 1.9.2
  - 1.9.3

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - "git clone git://github.com/n1k0/casperjs.git"
  - "cd casperjs"
  - "git checkout tags/0.6.5"
  - "sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs"
  - "RAILS_ENV=test bundle exec rake app:db:schema:load"

script: "bundle exec rake"

notifications:
  recipients:
    - joecorcoran@gmail.com

gemfile:
  - "gemfiles/rails_3_1.gemfile"
  - "gemfiles/rails_3_2.gemfile"

branches:
  only:
    - master
    - engine

Load test schema before running tests
Load test schema before running tests
