Sha256: 15316820e57463245f9d7254b78849cf2d759a1426f09a8247f8756cbcea14c9

Contents?: true

Size: 1.7 KB

Versions: 15

Compression:

Stored size: 1.7 KB

Contents

namespace :release do
  desc 'Upload all packages and tag git'
  task :ALL => ['gems:sanity', :ikvm, :mvn_deploy_jar, :mvn_deploy_site, :push_native_gems, :push_npm_package, :release, :push_yard, :symlink_docs, :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 upload gherkin-#{GHERKIN_VERSION}.dll to http://github.com/cucumber/gherkin/downloads ******\n\n"
    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 javadocs to cukes.info'
  task :mvn_deploy_site do
    Dir.chdir('java') do
      sh("mvn site:site site:deploy")
    end
  end

  desc 'Push npm package to http://npmjs.org/'
  task :push_npm_package do
    Dir.chdir('js') do
      sh("npm publish")
    end
  end
  
  desc 'Push yardoc to http://cukes.info/gherkin/api/#{GHERKIN_VERSION}'
  task :push_yard => :yard do
    sh("tar czf release/api-#{GHERKIN_VERSION}.tgz -C doc .")
    sh("scp release/api-#{GHERKIN_VERSION}.tgz cukes.info:/var/www/gherkin/api/ruby")
  end

  task :symlink_docs do
    sh("ssh cukes.info 'cd /var/www/gherkin/api/ruby && mkdir #{GHERKIN_VERSION} && tar xzf api-#{GHERKIN_VERSION}.tgz -C #{GHERKIN_VERSION} && rm -f latest && ln -s #{GHERKIN_VERSION} latest'")
    sh("ssh cukes.info 'cd /var/www/gherkin/api/java && rm -f latest && ln -s #{GHERKIN_VERSION} latest'")
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gherkin-2.6.5 tasks/release.rake
gherkin-2.6.5-x86-mswin32 tasks/release.rake
gherkin-2.6.5-x86-mingw32 tasks/release.rake
gherkin-2.6.5-universal-dotnet tasks/release.rake
gherkin-2.6.5-java tasks/release.rake
gherkin-2.6.4 tasks/release.rake
gherkin-2.6.4-x86-mswin32 tasks/release.rake
gherkin-2.6.4-x86-mingw32 tasks/release.rake
gherkin-2.6.4-universal-dotnet tasks/release.rake
gherkin-2.6.4-java tasks/release.rake
gherkin-2.6.3 tasks/release.rake
gherkin-2.6.3-x86-mswin32 tasks/release.rake
gherkin-2.6.3-x86-mingw32 tasks/release.rake
gherkin-2.6.3-universal-dotnet tasks/release.rake
gherkin-2.6.3-java tasks/release.rake