[Groonga-commit] pgroonga/pgroonga at 0cd8a8d [master] package yum: build in parallel

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Sep 29 15:40:17 JST 2016


Kouhei Sutou	2016-09-29 15:40:17 +0900 (Thu, 29 Sep 2016)

  New Revision: 0cd8a8d2a7cc05a0b5648d019c67d6fffe5395c0
  https://github.com/pgroonga/pgroonga/commit/0cd8a8d2a7cc05a0b5648d019c67d6fffe5395c0

  Message:
    package yum: build in parallel

  Modified files:
    Rakefile

  Modified: Rakefile (+6 -2)
===================================================================
--- Rakefile    2016-09-29 15:39:34 +0900 (f7e40c2)
+++ Rakefile    2016-09-29 15:40:17 +0900 (4ec39f1)
@@ -248,13 +248,17 @@ postgresql#{postgresql_package_version}-devel
               "6" => ["i386", "x86_64"],
               "7" => ["x86_64"],
             }
+            threads = []
             distribution_versions.each do |ver, archs|
               archs.each do |arch|
                 id = "#{distribution}-#{ver}-#{arch}"
-                sh("vagrant", "up", id)
-                sh("vagrant", "destroy", "--force", id)
+                threads << Thread.new do
+                  sh("vagrant", "up", id)
+                  sh("vagrant", "destroy", "--force", id)
+                end
               end
             end
+            threads.each(&:join)
           end
         end
       end
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index