[Groonga-commit] ranguba/rroonga at f554758 [master] windows: use rake-compiler-dock

Back to archive index

Hiroshi Hatake null+****@clear*****
Tue Oct 6 21:51:32 JST 2015


Hiroshi Hatake	2015-09-14 23:51:14 +0900 (Mon, 14 Sep 2015)

  New Revision: f554758f54cf8ada7cd76bbc4080d580190dc3d7
  https://github.com/ranguba/rroonga/commit/f554758f54cf8ada7cd76bbc4080d580190dc3d7

  Merged 1e2a565: Merge pull request #108 from cosmo0920/use-rake-compiler-dock

  Message:
    windows: use rake-compiler-dock

  Modified files:
    Rakefile
    rroonga.gemspec

  Modified: Rakefile (+3 -8)
===================================================================
--- Rakefile    2015-09-11 12:55:08 +0900 (23390f0)
+++ Rakefile    2015-09-14 23:51:14 +0900 (dfc0d4e)
@@ -148,16 +148,11 @@ namespace :clean do
   end
 end
 
-desc "Build cross compile binary with Vagrant"
+desc "Build cross compile binary with rake-compiler-dock"
 namespace :build do
   task :windows do
-    pkg_dir = "#{base_dir}/pkg"
-    mkdir pkg_dir unless File.exist?(pkg_dir)
-    cd "build/windows" do
-      sh("vagrant", "up")
-      cp(Dir.glob("pkg/rroonga-*-mingw32.gem"), pkg_dir)
-      sh("vagrant", "destroy", "-f")
-    end
+    require "rake_compiler_dock"
+    RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.0.0:2.1.6:2.2.2"
   end
 end
 

  Modified: rroonga.gemspec (+1 -0)
===================================================================
--- rroonga.gemspec    2015-09-11 12:55:08 +0900 (c167848)
+++ rroonga.gemspec    2015-09-14 23:51:14 +0900 (36d9ab9)
@@ -89,6 +89,7 @@ Gem::Specification.new do |s|
   s.add_development_dependency("test-unit-notify")
   s.add_development_dependency("rake")
   s.add_development_dependency("rake-compiler", [">= 0.9.5"])
+  s.add_development_dependency("rake-compiler-dock", ["~> 0.4.3"])
   s.add_development_dependency("bundler")
   s.add_development_dependency("yard")
   s.add_development_dependency("packnga", [">= 1.0.0"])
-------------- next part --------------
HTML����������������������������...
Download 



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