minor: cleanup rakefile, bamboo -> jenkins, broke out uninstall of bson_ext

This commit is contained in:
Tyler Brock 2012-02-10 11:17:33 -05:00
parent d3948114ea
commit 08ca57b92c
1 changed files with 7 additions and 2 deletions

View File

@ -12,6 +12,7 @@ begin
rescue LoadError
end
include Config
ENV['TEST_MODE'] = 'TRUE'
task :java do
@ -153,7 +154,7 @@ task :ydoc do
system "yardoc lib/**/*.rb lib/mongo/**/*.rb lib/bson/**/*.rb -e ./yard/yard_ext.rb -p yard/templates -o #{out} --title MongoRuby-#{Mongo::VERSION} --files docs/TUTORIAL.md,docs/GridFS.md,docs/FAQ.md,docs/REPLICA_SETS.md,docs/WRITE_CONCERN.md,docs/READ_PREFERENCE.md,docs/HISTORY.md,docs/CREDITS.md,docs/RELEASES.md,docs/CREDITS.md,docs/TAILABLE_CURSORS.md"
end
namespace :bamboo do
namespace :jenkins do
task :ci_reporter do
begin
require 'ci/reporter/rake/test_unit'
@ -188,9 +189,13 @@ namespace :gem do
`rm bson-*.gem`
end
desc "Uninstall the optional c extensions"
task :uninstall_extensions do
`gem uninstall bson_ext`
end
desc "Install the optional c extensions"
task :install_extensions do
`gem uninstall bson_ext`
`gem build bson_ext.gemspec`
`gem install --no-rdoc --no-ri bson_ext-*.gem`
`rm bson_ext-*.gem`