diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-05 23:07:03 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-05 23:07:03 +0400 |
commit | 53993cd714937c824acae577aae0aab079bec3bc (patch) | |
tree | c81a229b0981d0963f4866ff5662af1049a2335d /lib | |
parent | f5e3c4c0d755e19659abf996e48d57840047edcf (diff) |
Use schema:load on CI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/cruise.rake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/tasks/cruise.rake b/lib/tasks/cruise.rake index 1e2a31cbf..ebd836f03 100644 --- a/lib/tasks/cruise.rake +++ b/lib/tasks/cruise.rake @@ -15,15 +15,14 @@ namespace :cruise do puts "All tests passed!" end - task :migrate do - system('bundle exec rake db:migrate') - exit_status = $?.exitstatus - raise "db:migrate failed!" unless exit_status == 0 + task :migrate => ['db:drop', 'db:create', 'db:schema:load'] do + system('bundle exec rake db:test:prepare') + raise "migration failed!" unless $?.exitstatus == 0 end task :travis do ["rspec spec", "rake cucumber", "jasmine:ci"].each do |cmd| - system('bundle exec rspec spec') + system("bundle exec #{cmd}") raise "#{cmd} failed!" unless $?.exitstatus == 0 end end |