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

17 lines
337 B
Ruby
Raw Normal View History

namespace :gitlab do
desc "GitLab | Run all tests"
task :test do
2013-09-29 20:36:44 +00:00
cmds = [
2015-03-30 01:55:18 +00:00
%W(rake brakeman),
%W(rake rubocop),
%W(rake spinach),
%W(rake spec),
%W(rake teaspoon)
2013-09-29 20:36:44 +00:00
]
cmds.each do |cmd|
2014-05-26 20:30:45 +00:00
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
2013-09-29 20:36:44 +00:00
end
end
end