gitlab-org--gitlab-foss/lib/tasks/gitlab/test.rake
2013-09-29 23:36:44 +03:00

18 lines
338 B
Ruby

namespace :gitlab do
desc "GITLAB | Run all tests"
task :test do
cmds = [
"rake db:setup",
"rake db:seed_fu",
"rake spinach",
"rake spec",
"rake jasmine:ci"
]
cmds.each do |cmd|
system(cmd + " RAILS_ENV=test")
raise "#{cmd} failed!" unless $?.exitstatus.zero?
end
end
end