Sha256: 783a18b91ff4d0b6403a2e12042b8b437c51c630532224457a366d6d5570d6fe

Contents?: true

Size: 1018 Bytes

Versions: 37

Compression:

Stored size: 1018 Bytes

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.7-p352@cucumber rake cross compile RUBY_CC_VERSION=1.8.7"
    sh "rake cross compile RUBY_CC_VERSION=1.9.2"
    # This will copy the .so files to the proper place
    sh "rake -t cross compile RUBY_CC_VERSION=1.8.7:1.9.2"
  end

  desc 'Prepare JRuby binares'
  task :jruby => [:jar] do
    sh "rvm jruby@cucumber exec 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

37 entries across 37 versions & 1 rubygems

Version Path
gherkin-2.4.18 tasks/gems.rake
gherkin-2.4.18-x86-mswin32 tasks/gems.rake
gherkin-2.4.18-x86-mingw32 tasks/gems.rake
gherkin-2.4.18-universal-dotnet tasks/gems.rake
gherkin-2.4.18-java tasks/gems.rake
gherkin-2.4.17 tasks/gems.rake
gherkin-2.4.17-x86-mswin32 tasks/gems.rake
gherkin-2.4.17-x86-mingw32 tasks/gems.rake
gherkin-2.4.17-universal-dotnet tasks/gems.rake
gherkin-2.4.17-java tasks/gems.rake
gherkin-2.4.16 tasks/gems.rake
gherkin-2.4.16-x86-mswin32 tasks/gems.rake
gherkin-2.4.16-x86-mingw32 tasks/gems.rake
gherkin-2.4.16-universal-dotnet tasks/gems.rake
gherkin-2.4.16-java tasks/gems.rake
gherkin-2.4.15 tasks/gems.rake
gherkin-2.4.15-x86-mswin32 tasks/gems.rake
gherkin-2.4.15-x86-mingw32 tasks/gems.rake
gherkin-2.4.15-universal-dotnet tasks/gems.rake
gherkin-2.4.15-java tasks/gems.rake