Permalink
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (30 sloc) 778 Bytes
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task test: :spec
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
rescue LoadError
task :rubocop do
$stderr.puts 'RuboCop is disabled'
end
end
require 'yard'
namespace :doc do
YARD::Rake::YardocTask.new do |task|
task.files = %w(lib/**/*.rb)
task.options = %w(--markup markdown)
end
end
require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new do |measurement|
measurement.output = 'measurement/report.txt'
end
require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new do |verify|
verify.require_exact_threshold = false
verify.threshold = 57.8
end
task default: [:spec, :rubocop, :verify_measurements]