diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-12-21 09:30:53 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-12-21 09:30:53 +0000 |
commit | 694394b04e7a40ffbb45f5b40e5439d59ef24b03 (patch) | |
tree | 40de7188e86219a4082d0e2d4f17264876c5f669 /lib/tasks | |
parent | f9b5543075305a88205485da7128bafa79e6d13f (diff) | |
download | redmine-694394b04e7a40ffbb45f5b40e5439d59ef24b03.tar.gz redmine-694394b04e7a40ffbb45f5b40e5439d59ef24b03.zip |
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
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/ci.rake | 8 |
1 files changed, 7 insertions, 1 deletions
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 |