CI does a proper export. FINALLY.

This commit is contained in:
Sarah Mei 2010-10-08 21:13:13 -06:00
parent ee4c7c1cb8
commit c646db956e

View file

@ -1,8 +1,11 @@
desc "Run all specs and features" namespace :ci do
task :ci => [:environment] do desc "Run all specs and features"
system "/etc/init.d/xvfb start" task :ci => :environment do
system "DISPLAY=:99.0 bundle exec rake" system('/etc/init.d/xvfb start')
exit_status = $?.exitstatus system('export DISPLAY=:99.0 && bundle exec rake')
system "/etc/init.d/xvfb stop" exit_status = $?.exitstatus
raise "tests failed!" unless exit_status == 0 system('/etc/init.d/xvfb stop')
end raise "tests failed!" unless exit_status == 0
end
end
task :ci => "ci:ci"