-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (30 loc) · 723 Bytes
/
Rakefile
File metadata and controls
37 lines (30 loc) · 723 Bytes
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
# frozen_string_literal: true
require 'bundler/gem_tasks'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:conformance) do |t|
t.pattern = 'spec/conformance/**/*_spec.rb'
end
rescue LoadError
# rspec not yet available
end
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
rescue LoadError
# rubocop not yet available
end
desc 'Render docs/diagrams/*.dot to .svg'
task :diagrams do
sh 'bin/render-diagrams.sh'
end
namespace :docs do
desc 'Generate Markdown API reference into docs/api/'
task :api do
sh 'ruby scripts/gen-api-docs.rb'
end
end
desc 'Alias for docs:api'
task docs: 'docs:api'
task default: %i[spec rubocop]