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 = [
|
2015-03-29 21:55:18 -04:00
|
|
|
%W(rake brakeman),
|
2015-02-02 23:08:23 -05:00
|
|
|
%W(rake rubocop),
|
2014-02-25 06:15:18 -05:00
|
|
|
%W(rake spinach),
|
|
|
|
%W(rake spec),
|
2015-07-08 11:46:51 -04:00
|
|
|
%W(rake teaspoon)
|
2013-09-29 16:36:44 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
cmds.each do |cmd|
|
2014-05-26 16:30:45 -04:00
|
|
|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or 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
|