2012-06-15 00:15:28 -04:00
|
|
|
namespace :gitlab do
|
2015-06-23 10:52:40 -04:00
|
|
|
desc "GitLab | Run all tests"
|
2013-09-29 10:43:33 -04:00
|
|
|
task :test do
|
2013-09-29 16:36:44 -04:00
|
|
|
cmds = [
|
2017-02-22 13:18:40 -05:00
|
|
|
%w(rake brakeman),
|
|
|
|
%w(rake rubocop),
|
|
|
|
%w(rake spinach),
|
|
|
|
%w(rake spec),
|
|
|
|
%w(rake karma)
|
2013-09-29 16:36:44 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
cmds.each do |cmd|
|
2017-02-22 13:18:40 -05:00
|
|
|
system({ 'RAILS_ENV' => 'test', 'force' => 'yes' }, *cmd) || raise("#{cmd} failed!")
|
2013-09-29 16:36:44 -04:00
|
|
|
end
|
2013-09-29 10:43:33 -04:00
|
|
|
end
|
2014-06-21 05:18:57 -04:00
|
|
|
end
|