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 16:36:44 -04:00
cmds = [
2015-03-29 21:55:18 -04:00
%W(rake brakeman),
%W(rake rubocop),
%W(rake spinach),
%W(rake spec),
%W(rake teaspoon)
2013-09-29 16:36:44 -04:00
]
cmds.each do |cmd|
2014-05-26 16:30:45 -04:00
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
2013-09-29 16:36:44 -04:00
end
end
end