try breaking up travis build into components

This commit is contained in:
Sarah Mei 2011-11-04 21:35:06 -07:00
parent a87ba6cbfa
commit 29f5ce1577

View file

@ -2,10 +2,16 @@ namespace :ci do
desc "Run tests in the cloud. ZOMG!" desc "Run tests in the cloud. ZOMG!"
task :travis do task :travis do
["rspec spec", "rake jasmine:ci", "rake cucumber"].each do |cmd| if ENV['BUILD_TYPE'] == 'cucumber'
puts "Starting to run #{cmd}..." puts "Running cucumber features..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}") system("export DISPLAY=:99.0 && bundle exec rake cucumber")
raise "#{cmd} failed!" unless $?.exitstatus == 0 raise "Cucumber failed!" unless $?.exitstatus == 0
else
["rspec spec", "rake jasmine:ci"].each do |cmd|
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
end end
end end