-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
37 lines (30 loc) · 1.01 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'bundler/gem_tasks'
require 'bundler/audit/task'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yaml'
require 'yard/rake/yardoc_task'
require 'yard-junk/rake'
require 'yardstick/rake/measurement'
require 'yardstick/rake/verify'
yardstick_options = YAML.load_file('.yardstick.yml')
Bundler::Audit::Task.new
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:spec)
YARD::Rake::YardocTask.new
YardJunk::Rake.define_task
Yardstick::Rake::Measurement.new(:yardstick_measure, yardstick_options)
Yardstick::Rake::Verify.new
task default: :spec
# Delete these files and folders when running rake clobber.
CLOBBER.include('coverage', '.rspec_status')
# Remove the report on rake clobber
CLEAN.include('measurements', 'doc', '.yardoc', 'tmp')
desc 'Run spec with coverage'
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['spec'].execute
`open coverage/index.html`
end
desc 'Test, lint and perform security and documentation audits'
task qa: %w[spec rubocop yard:junk verify_measurements bundle:audit]