Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 785 Bytes
require 'rake'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/clean'
require 'rubyforge'
require 'spec/rake/spectask'
require 'ci/reporter/rake/rspec'
task :default => :spec
task :bamboo => [:package, "ci:setup:rspec", :spec]
Spec::Rake::SpecTask.new
spec = eval(File.read('bits_on_the_run.gemspec'))
Rake::GemPackageTask.new(spec) do |t|
t.need_tar = false
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files += ['README.rdoc', 'CHANGELOG', 'MIT-LICENSE', 'lib/bits_on_the_run.rb']
end
desc "Package and upload the release to RubyForge"
task :release => [:clobber, :package] do
rubyforge = RubyForge.new.configure
rubyforge.login
rubyforge.add_release spec.rubyforge_project, spec.name, spec.version.to_s, "pkg/#{spec.name}-#{spec.version}.gem"
end