2012-06-15 04:15:28 +00:00
|
|
|
namespace :gitlab do
|
2015-06-23 14:52:40 +00:00
|
|
|
desc "GitLab | Run all tests"
|
2013-09-29 14:43:33 +00:00
|
|
|
task :test do
|
2013-09-29 20:36:44 +00:00
|
|
|
cmds = [
|
2015-03-30 01:55:18 +00:00
|
|
|
%W(rake brakeman),
|
2015-02-03 04:08:23 +00:00
|
|
|
%W(rake rubocop),
|
2014-02-25 11:15:18 +00:00
|
|
|
%W(rake spinach),
|
|
|
|
%W(rake spec),
|
2015-07-08 15:46:51 +00:00
|
|
|
%W(rake teaspoon)
|
2013-09-29 20:36:44 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
cmds.each do |cmd|
|
2014-05-26 20:30:45 +00:00
|
|
|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
|
2013-09-29 20:36:44 +00:00
|
|
|
end
|
2013-09-29 14:43:33 +00:00
|
|
|
end
|
2014-06-21 09:18:57 +00:00
|
|
|
end
|