Skip to content

Commit

Permalink
Allow tests to run on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jun 4, 2011
1 parent 6fd6c12 commit f51848e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Rakefile
@@ -1,5 +1,11 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
# Ensure that the database has *a* config.
unless File.exist?(db_yml = File.expand_path('../config/database.yml', __FILE__))
require 'fileutils'
FileUtils.cp "#{db_yml}.sqlite3", db_yml
puts "Copied #{db_yml}.sqlite3 to #{db_yml}"
puts "Migrating..."
puts `bundle exec rake -f #{__FILE__} db:migrate`
end

require File.expand_path('../config/application', __FILE__)
require 'rake'
Expand Down

0 comments on commit f51848e

Please sign in to comment.