Add task to test the release preparation
This commit is contained in:
parent
1c47f7d184
commit
7c4080aac4
3
Rakefile
3
Rakefile
|
@ -7,6 +7,9 @@ require 'railties/lib/rails/api/task'
|
||||||
desc "Build gem files for all projects"
|
desc "Build gem files for all projects"
|
||||||
task :build => "all:build"
|
task :build => "all:build"
|
||||||
|
|
||||||
|
desc "Prepare the release"
|
||||||
|
task :prep_release => "all:prep_release"
|
||||||
|
|
||||||
desc "Release all gems to rubygems and create a tag"
|
desc "Release all gems to rubygems and create a tag"
|
||||||
task :release => "all:release"
|
task :release => "all:release"
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,6 @@ directory "pkg"
|
||||||
sh "gem install #{gem}"
|
sh "gem install #{gem}"
|
||||||
end
|
end
|
||||||
|
|
||||||
task :prep_release => [:ensure_clean_state, :build]
|
|
||||||
|
|
||||||
task :push => :build do
|
task :push => :build do
|
||||||
sh "gem push #{gem}"
|
sh "gem push #{gem}"
|
||||||
end
|
end
|
||||||
|
@ -139,5 +137,7 @@ namespace :all do
|
||||||
sh "git push --tags"
|
sh "git push --tags"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :prep_release => %w(ensure_clean_state build)
|
||||||
|
|
||||||
task :release => %w(ensure_clean_state build bundle commit tag push)
|
task :release => %w(ensure_clean_state build bundle commit tag push)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue