-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRakefile
More file actions
42 lines (34 loc) · 910 Bytes
/
Rakefile
File metadata and controls
42 lines (34 loc) · 910 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
38
39
40
41
42
# typed: true
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'minitest/test_task'
require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
task.options = ['--parallel']
end
Minitest::TestTask.create do |t|
# workaround to avoid throwing warnings from Janeway library circular require...
t.warning = false
end
namespace :sorbet do
desc "Remove legacy Sorbet artifacts like extra.rbi"
task :clean do
extra = File.join(__dir__, "extra.rbi")
if File.exist?(extra)
puts "Removing legacy file: extra.rbi"
File.delete(extra)
else
puts "extra.rbi not present — nothing to clean"
end
end
end
task :default => :test
# Developers can run all tests with:
#
# $ rake test
#
# Developers can run individual test files with:
#
# $ rake test test/parameter_test
#
# and run individual tests by adding `focus` to the line before the test definition.