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

17 lines
336 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 brakeman),
%w(rake rubocop),
%w(rake spinach),
%w(rake spec),
%w(rake karma)
2013-09-29 16:36:44 -04:00
]
cmds.each do |cmd|
system({ 'RAILS_ENV' => 'test', 'force' => 'yes' }, *cmd) || raise("#{cmd} failed!")
2013-09-29 16:36:44 -04:00
end
end
end