2011-11-15 14:42:01 +01:00
|
|
|
task :travis do
|
2012-09-10 15:40:57 +02:00
|
|
|
["spinach", "rspec spec"].each do |cmd|
|
2011-11-15 14:42:01 +01:00
|
|
|
puts "Starting to run #{cmd}..."
|
|
|
|
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
|
|
|
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
|
|
|
end
|
|
|
|
end
|