Sha256: 2478b254dcaa46067bf395a6d34ebebb6a089fb844133ef3f0a892288b7387f1
Contents?: true
Size: 928 Bytes
Versions: 18
Compression:
Stored size: 928 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.md" exit(1) end # rvm and mingw ruby versions have to match to avoid errors sh "rvm 1.8.7-p371@cucumber do rake cross compile RUBY_CC_VERSION=1.8.7" sh "bundle exec rake cross compile RUBY_CC_VERSION=1.9.3" # This will copy the .so files to the proper place sh "bundle exec 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
18 entries across 18 versions & 2 rubygems