Sha256: 724be4603c9c046b2624ca7f016fa3d440b26c2d6c4da1980b4b4773b31b8105
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 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 ################################ # 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.7.0 | Rakefile |