Sha256: f237d6874ba6b699fa6462fa71f0fb85423d0ab43bd572bcb7edead90e6e2f51

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

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

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

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

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

################################
# Coveralls                    #
################################

require 'coveralls/rake/task'
Coveralls::RakeTask.new
task test_with_coveralls: [:spec, 'coveralls:push']

################################
# 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.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 test_generators rubocop]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yoti-1.6.4 Rakefile