Bundle rbs gem as bundled gems (#3496)
* Added rbs as bundled gems * Added the missing dependencies for rbs gem
This commit is contained in:
parent
e380f78851
commit
ba889100d8
Notes:
git
2020-09-23 11:00:20 +09:00
Merged-By: soutaro <matsumoto@soutaro.com>
@ -1349,7 +1349,7 @@ test-bundled-gems-prepare: $(TEST_RUNNABLE)-test-bundled-gems-prepare
|
|||||||
no-test-bundled-gems-prepare: no-test-bundled-gems-precheck
|
no-test-bundled-gems-prepare: no-test-bundled-gems-precheck
|
||||||
yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck
|
yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck
|
||||||
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
|
$(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
|
PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare
|
||||||
test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems
|
test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems
|
||||||
|
@ -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
|
test-unit 3.3.6 https://github.com/test-unit/test-unit
|
||||||
rexml 3.2.4 https://github.com/ruby/rexml
|
rexml 3.2.4 https://github.com/ruby/rexml
|
||||||
rss 0.2.9 https://github.com/ruby/rss
|
rss 0.2.9 https://github.com/ruby/rss
|
||||||
|
rbs 0.12.2 https://github.com/ruby/rbs
|
||||||
|
@ -13,10 +13,18 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
|
|||||||
gem = line.split.first
|
gem = line.split.first
|
||||||
puts "\nTesting the #{gem} gem"
|
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
|
puts test_command
|
||||||
pid = Process.spawn(test_command, "#{/mingw|mswin/ =~ RUBY_PLATFORM ? 'new_' : ''}pgroup": true)
|
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
|
if sig
|
||||||
puts "Sending #{sig} signal"
|
puts "Sending #{sig} signal"
|
||||||
Process.kill("-#{sig}", pid)
|
Process.kill("-#{sig}", pid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user