Sha256: 34e4a543cf679bfe1459610073d2159df2c7f3a8921c14c3bf8c7946143faf84
Contents?: true
Size: 1.29 KB
Versions: 46
Compression:
Stored size: 1.29 KB
Contents
namespace :release do desc 'Upload all packages and tag git' task :ALL => ['gems:sanity', :ikvm, :push_jar, :push_native_gems, :push_npm_package, :release, :push_yard, :post_release] desc 'Push all gems to rubygems.org (gemcutter)' 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" end desc 'Push jar to cukes.info Maven repo' task :push_jar do Dir.chdir('java') do sh("mvn -Dmaven.wagon.provider.http=httpclient 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") 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'") end end
Version data entries
46 entries across 46 versions & 1 rubygems