CI test on both MySQL and SQLite

This commit is contained in:
Dan Rice 2015-02-22 18:19:48 -05:00
parent 0f336c4e2f
commit 4405015384
2 changed files with 5 additions and 3 deletions

View file

@ -6,14 +6,16 @@ rvm:
- 2.1 - 2.1
- 2.2 - 2.2
env:
- DATABASE_URL=mysql2://localhost/tracks_test
- DATABASE_URL=sqlite3:db/test.sqlite3
bundler_args: --without development --jobs=3 --retry=3 bundler_args: --without development --jobs=3 --retry=3
before_script: before_script:
- "mysql -e 'create database tracks_test;'"
- "export DISPLAY=:99.0" - "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
- "cp config/site.yml.tmpl config/site.yml" - "cp config/site.yml.tmpl config/site.yml"
- "cp config/database.yml.tmpl config/database.yml"
script: "bin/rake ci" script: "bin/rake ci"

View file

@ -9,7 +9,7 @@ task :ci do |t|
require 'simplecov' require 'simplecov'
SimpleCov.start 'rails' SimpleCov.start 'rails'
[:environment, 'test:all', 'cucumber'].each do |t| [:environment, 'db:create', 'test:all', 'cucumber'].each do |t|
Rake::Task[t].invoke Rake::Task[t].invoke
end end
end end