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