From c646db956e4f15ada2993c6a173eabb9e79436ea Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Fri, 8 Oct 2010 21:13:13 -0600 Subject: [PATCH] CI does a proper export. FINALLY. --- lib/tasks/ci.rake | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 1af761cfc..8887a6cc8 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -1,8 +1,11 @@ -desc "Run all specs and features" -task :ci => [:environment] do - system "/etc/init.d/xvfb start" - system "DISPLAY=:99.0 bundle exec rake" - exit_status = $?.exitstatus - system "/etc/init.d/xvfb stop" - raise "tests failed!" unless exit_status == 0 -end \ No newline at end of file +namespace :ci do + desc "Run all specs and features" + task :ci => :environment do + system('/etc/init.d/xvfb start') + system('export DISPLAY=:99.0 && bundle exec rake') + exit_status = $?.exitstatus + system('/etc/init.d/xvfb stop') + raise "tests failed!" unless exit_status == 0 + end +end +task :ci => "ci:ci"