forked from grosser/rack-openid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
42 lines (33 loc) · 799 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
require "bundler/gem_tasks"
require "rake/testtask"
require "require_bench" if ENV.fetch("REQUIRE_BENCH", "false").casecmp?("true")
desc "Run tests"
Rake::TestTask.new("test") do |t|
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 "ostruct" # until https://github.com/zverok/yard-junk/pull/42 is merged!
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(:yard)
rescue LoadError
task(:yard) do
warn("yard is disabled")
end
end
task default: %i[test rubocop_gradual:autocorrect yard yard:junk]