-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Rakefile
30 lines (23 loc) · 589 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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "chandler/tasks"
require "rake/testtask"
require "rubocop/rake_task"
#
# Add chandler as a prerequisite for `rake release`
#
task "release:rubygem_push" => "chandler:push"
desc "Run tests"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.warning = false
t.verbose = true
t.pattern = "test/**/*_test.rb"
end
RuboCop::RakeTask.new
desc "Checks markdown code style with Markdownlint"
task :mdl do
puts "Running mdl..."
abort unless system("mdl", *Dir.glob("*.md"))
end
task default: %i[test rubocop mdl]