From 4e3e6d9562ee38d6d2c1748ce234722cc488d806 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Fri, 8 Oct 2010 14:55:53 -0600 Subject: [PATCH] rake task starts a virtual framebuffer before running tests, stops it after --- lib/tasks/ci.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index e7bbae6c8..d2ab4c8f2 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -1,5 +1,9 @@ desc "Run all specs and features" task :ci => [:environment] do + system "export DISPLAY=:99" + system "/etc/init.d/xvfb start" system "bundle exec rake" - raise "tests failed!" unless $?.exitstatus == 0 + exit_status = $?.exitstatus + system "/etc/init.d/xvfb stop" + raise "tests failed!" unless exit_status == 0 end \ No newline at end of file