debian-mirror-gitlab/lib/tasks/gitlab/test.rake

18 lines
343 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
namespace :gitlab do
2015-09-11 14:41:01 +05:30
desc "GitLab | Run all tests"
2014-09-02 18:07:02 +05:30
task :test do
cmds = [
2017-08-17 22:00:37 +05:30
%w(rake brakeman),
%w(rake rubocop),
%w(rake spec),
%w(rake karma)
2014-09-02 18:07:02 +05:30
]
cmds.each do |cmd|
2017-08-17 22:00:37 +05:30
system({ 'RAILS_ENV' => 'test', 'force' => 'yes' }, *cmd) || raise("#{cmd} failed!")
2014-09-02 18:07:02 +05:30
end
end
end