gitlabhq/lib/tasks/dev/tests.rake

11 lines
289 B
Ruby
Raw Normal View History

namespace :dev do
desc "DEV | Run cucumber and rspec"
task :tests do
["cucumber", "rspec spec"].each do |cmd|
puts "Starting to run #{cmd}..."
2012-08-17 08:09:11 +02:00
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
end
end