Commit b4cf71f7 authored by Eloy Duran's avatar Eloy Duran

Probably a good idea to run at least the specs as well before releasing.

parent 9428428e
...@@ -59,7 +59,7 @@ namespace :gem do ...@@ -59,7 +59,7 @@ namespace :gem do
#sh "sudo macgem compile cocoapods" #sh "sudo macgem compile cocoapods"
end end
desc "Build and install gem, then commit version change, tag it, and push everything" desc "Run all specs, build and install gem, commit version change, tag version change, and push everything"
task :release do task :release do
puts "You are about to release `#{gem_version}', is that correct? [y/n]" puts "You are about to release `#{gem_version}', is that correct? [y/n]"
exit if STDIN.gets.strip.downcase != 'y' exit if STDIN.gets.strip.downcase != 'y'
...@@ -67,7 +67,8 @@ namespace :gem do ...@@ -67,7 +67,8 @@ namespace :gem do
if lines.size == 0 if lines.size == 0
puts "Change the version number yourself in lib/cocoapods.rb" puts "Change the version number yourself in lib/cocoapods.rb"
elsif lines.size == 1 && lines.first.include?('lib/cocoapods.rb') elsif lines.size == 1 && lines.first.include?('lib/cocoapods.rb')
# First see if the gem builds and installs # First see if the specs pass and gem builds and installs
Rake::Task['spec:all'].invoke
Rake::Task['gem:install'].invoke Rake::Task['gem:install'].invoke
# Then release # Then release
sh "git commit lib/cocoapods.rb -m 'Release #{gem_version}'" sh "git commit lib/cocoapods.rb -m 'Release #{gem_version}'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment