File tree Expand file tree Collapse file tree 4 files changed +21
-16
lines changed Expand file tree Collapse file tree 4 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,26 @@ rescue LoadError
1111end
1212
1313default_groups = [ :default , :testing ]
14- default_groups << :release unless ENV [ 'TEST' ]
1514Bundler . require ( *default_groups )
1615
17- Dir . glob ( 'tasks/**/*.rake' ) . sort . each { |r | load r }
16+ require 'rspec/core/rake_task'
17+
18+ RSpec ::Core ::RakeTask . new ( :spec )
19+ task :default => :spec
20+
21+ namespace :spec do
22+ if RUBY_VERSION > '1.9' && RUBY_VERSION < '2.2'
23+ require 'coveralls/rake/task'
24+ Coveralls ::RakeTask . new
25+ task :ci => [ :spec , 'coveralls:push' ]
26+ else
27+ task :ci => [ :spec ]
28+ end
29+ end
30+
31+ task :release => :spec do
32+ system "git tag -a v#{ Mongo ::VERSION } -m 'Tagging release: #{ Mongo ::VERSION } '"
33+ system "git push --tags"
34+ system "gem push mongo-#{ Mongo ::VERSION } .gem"
35+ system "rm mongo-#{ Mongo ::VERSION } .gem"
36+ end
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments