forked from rubaidh/bits_on_the_run
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (23 loc) · 785 Bytes
/
Copy pathRakefile
File metadata and controls
30 lines (23 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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