Sha256: 55204c40e5d6073bb2fc572ef15e952182065ad87f8953aafa422c6b19e0e75d

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

Stored size: 1.01 KB

Contents

namespace :gems do
  task :win do
    unless File.directory?(File.expand_path('~/.rake-compiler'))
      STDERR.puts "[ERROR] You must install MinGW rubies to build gherkin gems for Windows. See README.rdoc"
      exit(1)
    end
    # rvm and mingw ruby versions have to match to avoid errors
    sh "rvm 1.8.6-p399@cucumber rake cross compile RUBY_CC_VERSION=1.8.6"
    sh "rvm 1.9.1-p243@cucumber rake cross compile RUBY_CC_VERSION=1.9.1"
    # This will copy the .so files to the proper place
    sh "rake cross compile RUBY_CC_VERSION=1.8.6:1.9.1"
  end

  desc 'Prepare JRuby binares'
  task :jruby => [:jar] do
    sh "rvm jruby@cucumber -S rspec spec"
  end

  desc 'Prepare IronRuby binaries'
  task :ironruby => [:jruby, 'ikvm:dll', 'ikvm:copy_ikvm_dlls']

  task :sanity do
    raise "The jruby gem looks too small" if File.stat("release/gherkin-#{Gherkin::VERSION}-java.gem").size < 1000000
  end

  desc "Prepare binaries for all gems"
  task :prepare => [
    :clean,
    :spec,
    :win,
    :jruby,
    :ironruby
  ]

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gherkin-2.3.2 tasks/gems.rake
gherkin-2.3.2-x86-mswin32 tasks/gems.rake
gherkin-2.3.2-x86-mingw32 tasks/gems.rake
gherkin-2.3.2-universal-dotnet tasks/gems.rake
gherkin-2.3.2-java tasks/gems.rake
gherkin-2.3.1 tasks/gems.rake
gherkin-2.3.1-x86-mswin32 tasks/gems.rake
gherkin-2.3.1-x86-mingw32 tasks/gems.rake
gherkin-2.3.1-universal-dotnet tasks/gems.rake
gherkin-2.3.1-java tasks/gems.rake
gherkin-2.3.0 tasks/gems.rake
gherkin-2.3.0-x86-mswin32 tasks/gems.rake
gherkin-2.3.0-x86-mingw32 tasks/gems.rake
gherkin-2.3.0-universal-dotnet tasks/gems.rake
gherkin-2.3.0-java tasks/gems.rake