Skip to content
Snippets Groups Projects
Commit c646db95 authored by Sarah Mei's avatar Sarah Mei
Browse files

CI does a proper export. FINALLY.

parent ee4c7c1c
No related branches found
No related tags found
No related merge requests found
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment