Small cleanup of the release task
This commit is contained in:
parent
df5fe4d83c
commit
c3dd1238c5
2
Rakefile
2
Rakefile
|
@ -12,7 +12,7 @@ desc "Build gem files for all projects"
|
||||||
task :build => "all:build"
|
task :build => "all:build"
|
||||||
|
|
||||||
desc "Release all gems to gemcutter and create a tag"
|
desc "Release all gems to gemcutter and create a tag"
|
||||||
task :release => ["all:release", "git:tag"]
|
task :release => "all:release"
|
||||||
|
|
||||||
# RDoc skips some files in the Rails tree due to its binary? predicate. This is a quick
|
# RDoc skips some files in the Rails tree due to its binary? predicate. This is a quick
|
||||||
# hack for edge docs, until we decide which is the correct way to address this issue.
|
# hack for edge docs, until we decide which is the correct way to address this issue.
|
||||||
|
|
|
@ -61,7 +61,11 @@ directory "dist"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :release do
|
namespace :all do
|
||||||
|
task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
|
||||||
|
task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']
|
||||||
|
task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
|
||||||
|
|
||||||
task :ensure_clean_state do
|
task :ensure_clean_state do
|
||||||
unless `git status -s | grep -v RAILS_VERSION`.strip.empty?
|
unless `git status -s | grep -v RAILS_VERSION`.strip.empty?
|
||||||
abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
|
abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
|
||||||
|
@ -88,11 +92,5 @@ namespace :release do
|
||||||
sh "git tag #{tag}"
|
sh "git tag #{tag}"
|
||||||
end
|
end
|
||||||
|
|
||||||
task :full => %w(ensure_clean_state all:build commit tag all:push)
|
task :release => %w(ensure_clean_state build commit tag push)
|
||||||
end
|
|
||||||
|
|
||||||
namespace :all do
|
|
||||||
task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
|
|
||||||
task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']
|
|
||||||
task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue