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-03-13 05:33:33 -04:00
|
|
|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
|
2013-09-29 16:36:44 -04:00
|
|
|
|
|
|
|
raise "#{cmd} failed!" unless $?.exitstatus.zero?
|
|
|
|
end
|
2013-09-29 10:43:33 -04:00
|
|
|
end
|
2012-06-15 00:15:28 -04:00
|
|
|
end
|