Print cucumber backtraces for travis on failure.

This commit is contained in:
Mario Visic 2011-10-17 23:53:21 +08:00
parent 70dacfcef2
commit 4d19117351

View File

@ -71,7 +71,7 @@ task :spec_nix do
end
task :travis do
["rspec spec", "cucumber"].each do |cmd|
["rspec spec", "cucumber -b"].each do |cmd|
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0