.travis.yml
language: ruby
rvm:
- 2.1.5
- 2.2.2
env:
- DB=sqlite
before_install:
- gem install bundler -v 1.10.3
install:
- bundle install
cache:
directories:
- vendor/bundle
before_script:
- cp spec/dummy/config/database.def.yml spec/dummy/config/database.yml
script:
- cd spec/dummy
- bundle install
- bundle exec rake db:create RAILS_ENV=test
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake db:test:prepare
- cd ../../
- bundle exec rake