Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b4cf71f7e542a1f705f07bba23ca48a37fd8064b 1 parent 9428428
@alloy alloy authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
View
5 Rakefile
@@ -59,7 +59,7 @@ namespace :gem do
#sh "sudo macgem compile cocoapods"
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
puts "You are about to release `#{gem_version}', is that correct? [y/n]"
exit if STDIN.gets.strip.downcase != 'y'
@@ -67,7 +67,8 @@ namespace :gem do
if lines.size == 0
puts "Change the version number yourself in 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
# Then release
sh "git commit lib/cocoapods.rb -m 'Release #{gem_version}'"
Please sign in to comment.
Something went wrong with that request. Please try again.