2012-06-15 00:15:28 -04:00
|
|
|
namespace :gitlab do
|
2013-09-29 10:43:33 -04:00
|
|
|
desc "GITLAB | Run all tests"
|
|
|
|
task :test do
|
2013-09-29 16:36:44 -04:00
|
|
|
cmds = [
|
2014-02-25 06:15:18 -05:00
|
|
|
%W(rake spinach),
|
|
|
|
%W(rake spec),
|
|
|
|
%W(rake jasmine:ci)
|
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
|