Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-07-05 23:07:03 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-05 23:07:03 +0400
commit53993cd714937c824acae577aae0aab079bec3bc (patch)
treec81a229b0981d0963f4866ff5662af1049a2335d /lib
parentf5e3c4c0d755e19659abf996e48d57840047edcf (diff)
Use schema:load on CI
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/cruise.rake9
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