forked from sunspot/sunspot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created simple Rakefile in root directory that performs full release cycle for Sunspot and Sunspot::Rails. Also remove horribly bad file copying from gemspec and into that task. [sunspot#138 state:resolved]
- Loading branch information
Mat Brown
committed
Aug 24, 2010
1 parent
ae98d31
commit ec86d41
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
require 'spec' | ||
require 'spec/rake/spectask' | ||
desc 'Release Sunspot and Sunspot::Rails to Gemcutter' | ||
task :release do | ||
def system(command) | ||
puts command | ||
end | ||
FileUtils.cp('README.rdoc', 'sunspot/') | ||
system "git commit sunspot/README.rdoc -qm 'Updating README for gem release'" | ||
|
||
Spec::Rake::SpecTask.new('spec') do |t| | ||
t.spec_files = FileList[File.join(File.dirname(__FILE__), 'sunspot', 'spec', 'api')] | ||
end | ||
require File.expand_path('../sunspot/lib/sunspot/version', __FILE__) | ||
|
||
version_tag = "v#{Sunspot::VERSION}" | ||
system "git tag '#{version_tag}' -a 'Release version #{Sunspot::VERSION}'" | ||
system "git push origin #{version_tag}:#{version_tag}" | ||
|
||
system "gem build sunspot/sunspot.gemspec" | ||
system "gem build sunspot_rails/sunspot_rails.gemspec" | ||
|
||
task :default => :spec | ||
system "gem push sunspot-#{Sunspot::VERSION}.gem" | ||
system "gem push sunspot_rails-#{Sunspot::VERSION}.gem" | ||
|
||
system "rm sunspot-#{Sunspot::VERSION}.gem" | ||
system "rm sunspot_rails-#{Sunspot::VERSION}.gem" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters