gitlab-org--gitlab-foss/lib/tasks/travis.rake

8 lines
245 B
Ruby
Raw Normal View History

2011-11-15 08:42:01 -05:00
task :travis do
2012-06-17 11:33:13 -04:00
["bundle exec rake cucumber", "bundle exec rspec spec"].each do |cmd|
2011-11-15 08:42:01 -05:00
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
end