Skip to content
This repository
Newer
Older
100644 53 lines (41 sloc) 1.251 kb
49f8fa04 »
2010-09-15 Clean up obsolete bits.
1 require "bundler"
2 Bundler.setup
3
9ef89bdc »
2009-08-26 Adding Rakefile
4 require "rake"
6e91e9f8 »
2011-06-04 fix Rake::RDocTask deprecation warning
5 require "rdoc/task"
49fa1043 »
2010-05-28 Require rspec in Rakefile for build failures on Ubuntu
6 require "rspec"
d34f5074 »
2010-05-26 Upgrading to rspec 2.0.0.beta.8
7 require "rspec/core/rake_task"
9ef89bdc »
2009-08-26 Adding Rakefile
8
e792bfbf »
2010-05-13 Making gemspec dynamic, removing jeweler dependency, adding gem build…
9 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
10 require "mongoid/version"
11
ae67ac74 »
2010-09-29 Bumping version (beta.19)
12 task :gem => :build
e792bfbf »
2010-05-13 Making gemspec dynamic, removing jeweler dependency, adding gem build…
13 task :build do
14 system "gem build mongoid.gemspec"
15 end
16
17 task :install => :build do
2a9fee09 »
2010-05-17 Updating Rakefile to sudo the install
18 system "sudo gem install mongoid-#{Mongoid::VERSION}.gem"
e792bfbf »
2010-05-13 Making gemspec dynamic, removing jeweler dependency, adding gem build…
19 end
20
21 task :release => :build do
e9d9d923 »
2011-09-16 In accordance with semver we tag with a preceeding v
22 system "git tag -a v#{Mongoid::VERSION} -m 'Tagging #{Mongoid::VERSION}'"
3e5c9035 »
2010-05-28 Updating rakefile to tag and push
23 system "git push --tags"
6e535380 »
2010-05-17 Need the .gem ext for release
24 system "gem push mongoid-#{Mongoid::VERSION}.gem"
9ef89bdc »
2009-08-26 Adding Rakefile
25 end
26
4f8539c7 »
2011-05-19 Updating rspec to over 2.6
27 RSpec::Core::RakeTask.new(:spec) do |spec|
c6dd32e0 »
2009-08-29 Updating rcov pattern for specs
28 spec.pattern = "spec/**/*_spec.rb"
9ef89bdc »
2009-08-26 Adding Rakefile
29 end
30
4f8539c7 »
2011-05-19 Updating rspec to over 2.6
31 RSpec::Core::RakeTask.new("spec:unit") do |spec|
2ce971e6 »
2010-09-06 Embedding many now properly binds one or all when setting entire targ…
32 spec.pattern = "spec/unit/**/*_spec.rb"
33 end
34
4f8539c7 »
2011-05-19 Updating rspec to over 2.6
35 RSpec::Core::RakeTask.new("spec:functional") do |spec|
8af3b6ac »
2011-01-24 Moving spec/integration to spec/functional since it just makes more s…
36 spec.pattern = "spec/functional/**/*_spec.rb"
2ce971e6 »
2010-09-06 Embedding many now properly binds one or all when setting entire targ…
37 end
38
4f8539c7 »
2011-05-19 Updating rspec to over 2.6
39 RSpec::Core::RakeTask.new('spec:progress') do |spec|
12e897c2 »
2010-09-14 Using rspec opts
40 spec.rspec_opts = %w(--format progress)
131e7103 »
2010-07-27 Add spec:progress task
41 spec.pattern = "spec/**/*_spec.rb"
42 end
43
6e91e9f8 »
2011-06-04 fix Rake::RDocTask deprecation warning
44 RDoc::Task.new do |rdoc|
9ef89bdc »
2009-08-26 Adding Rakefile
45 rdoc.rdoc_dir = "rdoc"
49f8fa04 »
2010-09-15 Clean up obsolete bits.
46 rdoc.title = "mongoid #{Mongoid::VERSION}"
9ef89bdc »
2009-08-26 Adding Rakefile
47 rdoc.rdoc_files.include("README*")
cdeb836f »
2011-06-12 Add a CHANGELOG, fixes #820
48 rdoc.rdoc_files.include("CHANGELOG*")
9ef89bdc »
2009-08-26 Adding Rakefile
49 rdoc.rdoc_files.include("lib/**/*.rb")
25dfa04b »
2009-08-29 Adding metric_fu tasks
50 end
51
8fd7d57a »
2011-08-21 Split default rake task to run functional tests first
52 task :default => [ "spec:functional", "spec:unit" ]
Something went wrong with that request. Please try again.