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-02 12:13:53 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-02 21:21:30 +0400
commitbc5d29bff333f262b2788d2ff587f2f0ef729a32 (patch)
tree88e8b0946ee8b45d3e6795e6185d68e4be301f3d /lib
parent757b87e994d6e8c9840b76671829e8a6dcefa543 (diff)
Take some stuff out of the travis run, I think we need to use headless instead of an explicit xvfb. Turning off travis for now.
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/cruise.rake12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tasks/cruise.rake b/lib/tasks/cruise.rake
index 0c3ca3a9d..e7236272f 100644
--- a/lib/tasks/cruise.rake
+++ b/lib/tasks/cruise.rake
@@ -1,7 +1,13 @@
namespace :cruise do
desc "Run all specs and features"
task :cruise => [:environment, :'cruise:migrate'] do
+ puts "Starting virtual display..."
run_cruise
+ puts "Cleaning up..."
+ FileUtils.rm_rf("#{Rails.root}/public/uploads/images")
+ FileUtils.rm_rf("#{Rails.root}/public/uploads/tmp")
+ raise "tests failed!" unless exit_status == 0
+ puts "All tests passed!"
end
task :migrate do
@@ -14,18 +20,12 @@ namespace :cruise do
run_cruise
end
def run_cruise
- puts "Starting virtual display..."
`sh -e /etc/init.d/xvfb start`
puts "Starting specs..."
system('export DISPLAY=:99.0 && CI=true bundle exec rake')
exit_status = $?.exitstatus
puts "Stopping virtual display..."
`sh -e /etc/init.d/xvfb stop`
- puts "Cleaning up..."
- FileUtils.rm_rf("#{Rails.root}/public/uploads/images")
- FileUtils.rm_rf("#{Rails.root}/public/uploads/tmp")
- raise "tests failed!" unless exit_status == 0
- puts "All tests passed!"
end
end
task :cruise => "cruise:cruise"