Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 0.649 kB
if defined? RUBY_ENGINE and 'ruby' == RUBY_ENGINE and RUBY_VERSION.index('1.9') == 0
task :default => [:enable_coverage, :spec, :test, :quality]
else
task :default => [:spec, :test]
end
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :enable_coverage do
ENV['COVERAGE'] = 'yes'
end
desc %(Run Test::Unit tests)
task :test do
sh 'ruby', '-Ilib', 'spec/caching_test.rb'
end
desc %(Check code quality metrics with Cane)
task :quality do
sh 'cane',
'--abc-max=15',
'--style-measure=110',
'--gte=coverage/covered_percent,99',
'--max-violations=0'
end
Jump to Line
Something went wrong with that request. Please try again.