gitlab-org--gitlab-foss/lib/tasks/spinach.rake

15 lines
296 B
Ruby
Raw Normal View History

Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
desc "GITLAB | Run spinach"
task :spinach do
cmds = [
%W(rake gitlab:setup),
%W(spinach),
]
cmds.each do |cmd|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) ||
raise "#{cmd} failed!"
end
end