From 694394b04e7a40ffbb45f5b40e5439d59ef24b03 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 21 Dec 2013 09:30:53 +0000 Subject: [PATCH] use environment variable for extacting SCM repositories in ci.rake git-svn-id: http://svn.redmine.org/redmine/trunk@12426 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/ci.rake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 89ac960ba..a1455a104 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -16,7 +16,13 @@ namespace :ci do Rake::Task["db:create:all"].invoke Rake::Task["db:migrate"].invoke Rake::Task["db:schema:dump"].invoke - Rake::Task["test:scm:setup:all"].invoke + if scms = ENV['SCMS'] + scms.split(',').each do |scm| + Rake::Task["test:scm:setup:#{scm}"].invoke + end + else + Rake::Task["test:scm:setup:all"].invoke + end Rake::Task["test:scm:update"].invoke end