Add task to test the release preparation

This commit is contained in:
Rafael Mendonça França 2015-12-18 14:56:26 -02:00
parent 1c47f7d184
commit 7c4080aac4
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,9 @@ require 'railties/lib/rails/api/task'
desc "Build gem files for all projects"
task :build => "all:build"
desc "Prepare the release"
task :prep_release => "all:prep_release"
desc "Release all gems to rubygems and create a tag"
task :release => "all:release"

View File

@ -57,8 +57,6 @@ directory "pkg"
sh "gem install #{gem}"
end
task :prep_release => [:ensure_clean_state, :build]
task :push => :build do
sh "gem push #{gem}"
end
@ -139,5 +137,7 @@ namespace :all do
sh "git push --tags"
end
task :prep_release => %w(ensure_clean_state build)
task :release => %w(ensure_clean_state build bundle commit tag push)
end