[ruby/irb] Skip TypeCompletion test in ruby ci

(https://github.com/ruby/irb/pull/748)

https://github.com/ruby/irb/commit/d394af0bbc
This commit is contained in:
tomoya ishida 2023-11-08 15:42:05 +09:00 committed by git
parent 7f565b923a
commit 8da33bff8c
5 changed files with 9 additions and 0 deletions

View File

@ -653,6 +653,7 @@ module TestIRB
end
def test_build_completor
pend 'set ENV["WITH_TYPE_COMPLETION_TEST"] to run this test' unless ENV['WITH_TYPE_COMPLETION_TEST']
verbose, $VERBOSE = $VERBOSE, nil
original_completor = IRB.conf[:COMPLETOR]
IRB.conf[:COMPLETOR] = :regexp

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
return unless ENV['WITH_TYPE_COMPLETION_TEST']
return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
return unless ENV['WITH_TYPE_COMPLETION_TEST']
# Run test only when Ruby >= 3.0 and %w[prism rbs] are available
return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
return unless ENV['WITH_TYPE_COMPLETION_TEST']
# Run test only when Ruby >= 3.0 and %w[prism rbs] are available
return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
return unless ENV['WITH_TYPE_COMPLETION_TEST']
return unless RUBY_VERSION >= '3.0.0'
return if RUBY_ENGINE == 'truffleruby' # needs endless method definition