-
Notifications
You must be signed in to change notification settings - Fork 154
/
Rakefile
39 lines (31 loc) · 827 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
# frozen_string_literal: true
# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'
require 'rubocop/rake_task'
RuboCop::RakeTask.new
namespace :test do
Rake::TestTask.new :instrumentation do |t|
t.libs << 'lib'
t.libs << 'test/instrumentation'
t.test_files = FileList['test/instrumentation/**/*_test.rb']
end
Rake::TestTask.new :railtie do |t|
t.libs << 'lib'
t.libs << 'test/railtie'
t.test_files = FileList['test/railtie/**/*_test.rb']
end
end
desc 'Run all tests'
task test: %i[test:instrumentation test:railtie]
YARD::Rake::YardocTask.new do |t|
t.stats_options = ['--list-undoc']
end
if RUBY_ENGINE == 'truffleruby'
task default: %i[test]
else
task default: %i[test rubocop yard]
end