diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-02 12:13:53 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-02 21:21:30 +0400 |
commit | bc5d29bff333f262b2788d2ff587f2f0ef729a32 (patch) | |
tree | 88e8b0946ee8b45d3e6795e6185d68e4be301f3d /lib | |
parent | 757b87e994d6e8c9840b76671829e8a6dcefa543 (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.rake | 12 |
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" |