-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Rakefile
34 lines (25 loc) · 666 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
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.options = "--pride"
t.test_files = FileList["test/**/*_test.rb"]
end
require "standard/rake"
require "rubocop/rake_task"
RuboCop::RakeTask.new
require "steep"
require "steep/cli"
desc "Type check with Steep"
task :steep do
Steep::CLI.new(argv: ["check"], stdout: $stdout, stderr: $stderr, stdin: $stdin).run
end
require "mutant"
desc "Run mutant"
task :mutant do
system(*%w[bundle exec mutant run]) or raise "Mutant task failed"
end
desc "Run linters"
task lint: %i[rubocop standard]
task default: %i[test lint mutant steep]