diff options
-rw-r--r-- | common.mk | 2 | ||||
-rw-r--r-- | gems/bundled_gems | 2 | ||||
-rw-r--r-- | tool/test-bundled-gems.rb | 5 |
3 files changed, 7 insertions, 2 deletions
@@ -1372,7 +1372,7 @@ no-test-bundled-gems-prepare: no-test-bundled-gems-precheck yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck $(ACTIONS_GROUP) $(XRUBY) -C "$(srcdir)" bin/gem install --no-document \ - --install-dir .bundle --conservative "bundler" "minitest:~> 5" "test-unit" "rake" "hoe" "yard" "pry" "packnga" "rexml" "json-schema" "rbs" + --install-dir .bundle --conservative "bundler" "minitest:~> 5" "test-unit" "rake" "hoe" "yard" "pry" "packnga" "rexml" "json-schema" $(ACTIONS_ENDGROUP) PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare diff --git a/gems/bundled_gems b/gems/bundled_gems index e6c704b8b1..342c5000b0 100644 --- a/gems/bundled_gems +++ b/gems/bundled_gems @@ -11,5 +11,5 @@ net-pop 0.1.1 https://github.com/ruby/net-pop net-smtp 0.2.1 https://github.com/ruby/net-smtp matrix 0.4.2 https://github.com/ruby/matrix prime 0.1.2 https://github.com/ruby/prime -typeprof 0.15.2 https://github.com/ruby/typeprof rbs 1.5.1 https://github.com/ruby/rbs +typeprof 0.15.2 https://github.com/ruby/typeprof diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index d4c45332ab..6419ffaa50 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -20,6 +20,11 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| test_command = "#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{rake} test" first_timeout = 600 # 10min + if gem == "typeprof" + raise "need to run rbs test suite before typeprof" unless File.readable?("#{gem_dir}/src/rbs/lib/rbs/parser.rb") + ENV["RUBYLIB"] = ["#{gem_dir}/src/rbs/lib", ENV.fetch("RUBYLIB", nil)].compact.join(":") + end + if gem == "rbs" racc = File.realpath("../../libexec/racc", __FILE__) pid = Process.spawn("#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{racc} -v -o lib/rbs/parser.rb lib/rbs/parser.y") |