Converting to cruisecontrol.rb

This commit is contained in:
Sarah Mei 2010-10-20 20:39:13 -07:00
parent 36a5fe6b31
commit 73f0e17f5a

View file

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