Sha256: fe78a6a723820533f6131ace69b64a6019dd59a9999f139c28f0962d61316996
Contents?: true
Size: 903 Bytes
Versions: 4
Compression:
Stored size: 903 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.3" # This will copy the .so files to the proper place sh "rake -t cross compile RUBY_CC_VERSION=1.8.7:1.9.3" end desc 'Prepare JRuby binares' task :jruby => [:jar] do sh "rvm jruby@cucumber exec rspec spec" end 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 ] end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gherkin-2.6.6 | tasks/gems.rake |
gherkin-2.6.6-x86-mswin32 | tasks/gems.rake |
gherkin-2.6.6-x86-mingw32 | tasks/gems.rake |
gherkin-2.6.6-java | tasks/gems.rake |