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

17 lines
320 B
Ruby
Raw Normal View History

namespace :gitlab do
desc "GITLAB | Run all tests"
task :test do
2013-09-29 16:36:44 -04:00
cmds = [
%W(rake spinach),
%W(rake spec),
%W(rake jasmine:ci)
2013-09-29 16:36:44 -04:00
]
cmds.each do |cmd|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
2013-09-29 16:36:44 -04:00
raise "#{cmd} failed!" unless $?.exitstatus.zero?
end
end
end