gitlabhq/lib/tasks/travis.rake
2012-09-10 06:40:57 -07:00

8 lines
215 B
Ruby

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