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 spinach),
|
|
|
|
%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
|