gitlab-org--gitlab-foss/lib/tasks/gitlab/test.rake
2015-03-29 18:55:18 -07:00

16 lines
339 B
Ruby

namespace :gitlab do
desc "GITLAB | Run all tests"
task :test do
cmds = [
%W(rake brakeman),
%W(rake rubocop),
%W(rake spinach),
%W(rake spec),
%W(rake jasmine:ci)
]
cmds.each do |cmd|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
end
end
end