From 08ca57b92cc0fff0f9e76a88bda565c65f2dc13d Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Fri, 10 Feb 2012 11:17:33 -0500 Subject: [PATCH] minor: cleanup rakefile, bamboo -> jenkins, broke out uninstall of bson_ext --- Rakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 63d4dfc..c3bc762 100644 --- a/Rakefile +++ b/Rakefile @@ -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' @@ -187,10 +188,14 @@ namespace :gem do `rm mongo-*.gem` `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`