Sha256: 6c99e1598897838c5ef6a4467f3e8448723f1b6c950050898e6c80cbaa4ca60a

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

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

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

RSpec::Core::RakeTask.new
task test: :spec

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoti-1.6.3 Rakefile
yoti-1.6.2 Rakefile
yoti-1.6.1 Rakefile
yoti-1.6.0 Rakefile