gitlabhq/lib/tasks/travis.rake
2012-06-16 13:31:21 +03:00

8 lines
221 B
Ruby

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