From 984061cb8008837bcbe1ffaa6a9072e4ba936113 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 3 Sep 2011 16:38:16 -0700 Subject: [PATCH] Run spec, cucumber, and jasmine separately in an effort to not run rspec twice. --- lib/tasks/cruise.rake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tasks/cruise.rake b/lib/tasks/cruise.rake index d666ef4f0..b7e0232dc 100644 --- a/lib/tasks/cruise.rake +++ b/lib/tasks/cruise.rake @@ -21,8 +21,10 @@ namespace :cruise do end task :travis do - system('export DISPLAY=:99.0 && CI=true bundle exec rake') - raise "tests failed!" unless $?.exitstatus == 0 + ["rspec spec", "rake cucumber", "jasmine:ci"].each do |cmd| + system("export DISPLAY=:99.0 && bundle exec #{cmd}") + raise "#{cmd} failed!" unless $?.exitstatus == 0 + end end end task :cruise => "cruise:cruise"