Sha256: d05b3549780a0cdf0ab89a5b31595d975f079157ef4816bd21d1d0f8679a9a92

Contents?: true

Size: 1.04 KB

Versions: 33

Compression:

Stored size: 1.04 KB

Contents

namespace :release do
  desc 'Upload all packages and tag git'
  task :ALL => ['gems:sanity', 'ikvm:check', :mvn_deploy_jar, :push_native_gems, :push_npm_package, 'ikvm:push', :release, 'api:doc', :post_release]

  desc 'Push all gems to rubygems.org'
  task :push_native_gems do
    Dir.chdir('release') do
      Dir['*.gem'].each do |gem_file|
        sh("gem push #{gem_file}")
      end
    end
  end

  task :post_release => :ikvm do
    puts "\n\n****** Manually close and release at https://oss.sonatype.org/index.html#stagingRepositories ******\n\n"
  end

  desc 'Push jar to central Maven repo'
  task :mvn_deploy_jar do
    Dir.chdir('java') do
      sh("mvn clean source:jar javadoc:jar deploy")
    end
  end
  
  desc 'Push npm package to http://npmjs.org/'
  task :push_npm_package do
    en_min_js = File.expand_path(File.dirname(__FILE__) + '/../js/lib/gherkin/lexer/en.min.js')
    raise "No #{en_min_js}. Did you set GHERKIN_JS=true in your shell?" unless File.file?(en_min_js)

    Dir.chdir('js') do
      sh("npm publish")
    end
  end
end

Version data entries

33 entries across 31 versions & 3 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/gherkin-2.12.2/tasks/release.rake
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/gherkin-2.12.2/tasks/release.rake
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/gherkin-2.12.2/tasks/release.rake
gherkin-2.12.2 tasks/release.rake
gherkin-2.12.2-x86-mswin32 tasks/release.rake
gherkin-2.12.2-x86-mingw32 tasks/release.rake
gherkin-2.12.2-java tasks/release.rake
gherkin-2.12.1 tasks/release.rake
gherkin-2.12.1-x86-mswin32 tasks/release.rake
gherkin-2.12.1-x86-mingw32 tasks/release.rake
gherkin-2.12.1-java tasks/release.rake
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/tasks/release.rake
gherkin-2.12.0 tasks/release.rake
gherkin-2.12.0-x86-mingw32 tasks/release.rake
gherkin-2.12.0-x86-mswin32 tasks/release.rake
gherkin-2.12.0-java tasks/release.rake
gherkin-2.11.8 tasks/release.rake
gherkin-2.11.8-x86-mswin32 tasks/release.rake
gherkin-2.11.8-x86-mingw32 tasks/release.rake
gherkin-2.11.8-java tasks/release.rake