Sha256: c8bd6e4ac41f05d96955e773f53300b0e3a5844b07a646bc7966be0b27fef0a3
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
namespace :release do desc 'Uplad all packages and tag git' task :ALL => [:gems, :push_dll, :push_jar, :push_gems, 'git:release'] desc 'Push all gems to rubygems.org (gemcutter)' task :push_gems do Dir.chdir('release') do Dir['*.gem'].each do |gem_file| sh("gem push #{gem_file}") end end end desc 'Push dll to Github' task :push_dll => :ikvm do Dir.chdir('release') do # This requires aslakhellesoy's build of the github gem, # which has tekkub's upload command. begin sh("github upload gherkin-#{GHERKIN_VERSION}.dll") rescue => e # For some reason we're getting an error even if the upload is successful. Verify that here... head = `curl -I -X HEAD http://github.com/downloads/aslakhellesoy/gherkin/gherkin-#{GHERKIN_VERSION}.dll` if !(head =~ /302 Found/in) e.message << "\n\nUpload of gherkin-#{GHERKIN_VERSION}.dll failed:\n\n#{head}" raise e end end end 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 end
Version data entries
5 entries across 5 versions & 1 rubygems