forked from aaronmallen/activeinteractor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
32 lines (25 loc) · 742 Bytes
/
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
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'active_interactor/version'
RSpec::Core::RakeTask.new(:rspec)
begin
require 'mdl'
require 'rubocop/rake_task'
require 'yard'
RuboCop::RakeTask.new do |task|
task.options << '-D'
end
task :mdl do
puts 'Linting markdown documents...'
MarkdownLint.run(Dir['*.md'])
# MarkdownLint#run calls system exit regardless of status.
rescue SystemExit # rubocop:disable Lint/SuppressedException
end
YARD::Rake::YardocTask.new(:doc)
Rake::Task[:spec].clear.enhance %i[mdl rubocop rspec]
task default: %i[spec doc build]
rescue LoadError
Rake::Task[:spec].clear.enhance %i[rspec]
task default: %i[spec build]
end