Sha256: 2c52f0562c92991a7bbbeb81ba7d138e62adc8b2b7dbb1a353981d801c2e85cb

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'yaml'

################################
# Tests                        #
################################

RSpec::Core::RakeTask.new(:test_yoti) do |t|
  t.pattern = ['spec/yoti']
end

RSpec::Core::RakeTask.new(:test_generators) do |t|
  t.pattern = ['spec/generators']
end

RSpec::Core::RakeTask.new(:spec)

################################
# Rubocop                      #
################################

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |t|
  t.options = ['--config', 'rubocop.yml']
end

################################
# Documentation                #
################################

require 'yard'
YARD::Rake::YardocTask.new do |t|
  t.options = ['--output-dir', './yardoc']
  t.stats_options = ['--list-undoc']
end

yardstick_options = YAML.load_file('yardstick.yml')

require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new(:measurement, yardstick_options) do |measurement|
  measurement.output = 'measurement/report.txt'
end

################################
# Defaults                     #
################################

task default: %i[spec rubocop]
task test: %i[test_yoti test_generators rubocop]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yoti-1.7.1 Rakefile