Skip to content

Commit f6213c2

Browse files
committed
Skip validating rbs
1 parent e906c6d commit f6213c2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Rakefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ task :validate => :compile do
6363
# Skip RBS validation because Ruby CI runs without rubygems
6464
case skip_rbs_validation = ENV["SKIP_RBS_VALIDATION"]
6565
when nil
66-
libs << "rbs"
66+
begin
67+
Gem::Specification.find_by_name("rbs")
68+
libs << "rbs"
69+
rescue Gem::MissingSpecError
70+
STDERR.puts "🚨🚨🚨🚨 Skipping `rbs` gem because it's not found"
71+
end
6772
when "true"
6873
# Skip
6974
else
@@ -90,7 +95,7 @@ task :stdlib_test => :compile do
9095
if ENV["RANDOMIZE_STDLIB_TEST_ORDER"] == "true"
9196
test_files.shuffle!
9297
end
93-
98+
9499
sh "#{ruby} -Ilib #{bin}/test_runner.rb #{test_files.join(' ')}"
95100
# TODO: Ractor tests need to be run in a separate process
96101
sh "#{ruby} -Ilib #{bin}/test_runner.rb test/stdlib/Ractor_test.rb"

0 commit comments

Comments
 (0)