forked from openid/ruby-openid
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
executable file
·47 lines (39 loc) · 953 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rake/testtask"
desc "Run tests"
Rake::TestTask.new("test") do |t|
t.libs << "lib"
t.libs << "test"
t.test_files = FileList["test/**/test_*.rb"]
t.verbose = false
end
begin
require "rubocop/lts"
Rubocop::Lts.install_tasks
rescue LoadError
task(:rubocop_gradual) do
warn("RuboCop (Gradual) is disabled")
end
end
begin
require "yard-junk/rake"
YardJunk::Rake.define_task
rescue LoadError
task("yard:junk") do
warn("yard:junk is disabled")
end
end
begin
require "yard"
YARD::Rake::YardocTask.new do |t|
t.files = ["lib/**/*.rb"]
t.options = ["--debug", "--markup", "markdown", "--markup-provider", "commonmarker"]
t.stats_options = ["--list-undoc"] if ENV.fetch("VERBOSE", "false").casecmp?("true")
end
rescue LoadError
task(:yard) do
warn("yard is disabled")
end
end
task default: %i[test rubocop_gradual:autocorrect yard yard:junk]