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
This commit is contained in:
Toshi MARUYAMA 2013-12-21 09:30:53 +00:00
parent f9b5543075
commit 694394b04e
1 changed files with 7 additions and 1 deletions

View File

@ -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