Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (41 sloc) 1.328 kB
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake'
require "rspec/core/rake_task"
require 'rake/rdoctask'
task :default => :spec
desc "Run functional specs"
RSpec::Core::RakeTask.new(:spec_functional) do |spec|
spec.pattern = 'spec/*_spec.rb'
spec.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
end
desc "Run unit specs"
RSpec::Core::RakeTask.new(:spec_unit) do |spec|
spec.pattern = 'spec/unit/*_spec.rb'
spec.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
end
desc "Run all specs"
task :spec do
if ENV['TRAVIS'] # travis handles the environments for us
Rake::Task[:spec_unit].execute
Rake::Task[:spec_functional].execute
else
['3_0', '3_1', '3_2'].each do |version|
Bundler.with_clean_env do
ENV['BUNDLE_GEMFILE'] = "active_support_#{version}"
sh "bundle install"
Rake::Task[:spec_unit].execute
Rake::Task[:spec_functional].execute
end
end
end
end
desc 'Generate documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Couch Potato'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/couch_potato.rb')
rdoc.rdoc_files.include('lib/couch_potato/**/*.rb')
end
Jump to Line
Something went wrong with that request. Please try again.