1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Bundle rbs gem as bundled gems (#3496)

* Added rbs as bundled gems
* Added the missing dependencies for rbs gem
This commit is contained in:
Hiroshi SHIBATA 2020-09-23 10:59:49 +09:00 committed by GitHub
parent e380f78851
commit ba889100d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2020-09-23 11:00:20 +09:00
Merged-By: soutaro <matsumoto@soutaro.com>
3 changed files with 12 additions and 3 deletions

View file

@ -1349,7 +1349,7 @@ test-bundled-gems-prepare: $(TEST_RUNNABLE)-test-bundled-gems-prepare
no-test-bundled-gems-prepare: no-test-bundled-gems-precheck
yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
--install-dir .bundle --conservative "bundler" "minitest:~> 5" 'test-unit' 'rake' 'hoe' 'yard' 'pry' 'packnga' 'rexml'
--install-dir .bundle --conservative "bundler" "minitest:~> 5" "test-unit" "rake" "hoe" "yard" "pry" "packnga" "rexml" "json-schema"
PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare
test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems

View file

@ -4,3 +4,4 @@ rake 13.0.1 https://github.com/ruby/rake
test-unit 3.3.6 https://github.com/test-unit/test-unit
rexml 3.2.4 https://github.com/ruby/rexml
rss 0.2.9 https://github.com/ruby/rss
rbs 0.12.2 https://github.com/ruby/rbs

View file

@ -13,10 +13,18 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
gem = line.split.first
puts "\nTesting the #{gem} gem"
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{rake}"
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{rake} test"
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")
Process.waitpid(pid)
test_command << " stdlib_test validate"
end
puts test_command
pid = Process.spawn(test_command, "#{/mingw|mswin/ =~ RUBY_PLATFORM ? 'new_' : ''}pgroup": true)
{nil => 60, INT: 30, TERM: 10, KILL: nil}.each do |sig, sec|
{nil => 600, INT: 30, TERM: 10, KILL: nil}.each do |sig, sec|
if sig
puts "Sending #{sig} signal"
Process.kill("-#{sig}", pid)