mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Bundle rbs 1.7.0.beta.5
This commit is contained in:
parent
bd2674ad33
commit
efe7e6e949
Notes:
git
2021-11-09 03:33:14 +09:00
3 changed files with 19 additions and 1 deletions
|
@ -11,6 +11,6 @@ net-pop 0.1.1 https://github.com/ruby/net-pop
|
||||||
net-smtp 0.3.0 https://github.com/ruby/net-smtp
|
net-smtp 0.3.0 https://github.com/ruby/net-smtp
|
||||||
matrix 0.4.2 https://github.com/ruby/matrix
|
matrix 0.4.2 https://github.com/ruby/matrix
|
||||||
prime 0.1.2 https://github.com/ruby/prime
|
prime 0.1.2 https://github.com/ruby/prime
|
||||||
rbs 1.6.2 https://github.com/ruby/rbs
|
rbs 1.7.0.beta.5 https://github.com/ruby/rbs
|
||||||
typeprof 0.20.2 https://github.com/ruby/typeprof
|
typeprof 0.20.2 https://github.com/ruby/typeprof
|
||||||
debug 1.3.4 https://github.com/ruby/debug
|
debug 1.3.4 https://github.com/ruby/debug
|
||||||
|
|
9
tool/dummy-rake-compiler/rake/extensiontask.rb
Normal file
9
tool/dummy-rake-compiler/rake/extensiontask.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
module Rake
|
||||||
|
class ExtensionTask < TaskLib
|
||||||
|
def initialize(...)
|
||||||
|
task :compile do
|
||||||
|
puts "Dummy `compile` task defined in #{__FILE__}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -9,6 +9,7 @@ allowed_failures = allowed_failures.split(',').reject(&:empty?)
|
||||||
|
|
||||||
rake = File.realpath("../../.bundle/bin/rake", __FILE__)
|
rake = File.realpath("../../.bundle/bin/rake", __FILE__)
|
||||||
gem_dir = File.realpath('../../gems', __FILE__)
|
gem_dir = File.realpath('../../gems', __FILE__)
|
||||||
|
dummy_rake_compiler_dir = File.realpath('../dummy-rake-compiler', __FILE__)
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
ruby = ENV['RUBY'] || RbConfig.ruby
|
ruby = ENV['RUBY'] || RbConfig.ruby
|
||||||
failed = []
|
failed = []
|
||||||
|
@ -33,6 +34,14 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
|
||||||
test_command << " stdlib_test validate"
|
test_command << " stdlib_test validate"
|
||||||
|
|
||||||
first_timeout *= 3
|
first_timeout *= 3
|
||||||
|
|
||||||
|
# copied from debug gem
|
||||||
|
build_dir = 'ext/-test-/gems/rbs'
|
||||||
|
FileUtils.mkdir_p(build_dir)
|
||||||
|
extconf_path = File.expand_path('../../gems/src/rbs/ext/rbs_extension/extconf.rb', __FILE__)
|
||||||
|
system("#{ruby} -C #{build_dir} #{extconf_path}") or raise
|
||||||
|
system("cd #{build_dir} && make extout=../../../../.ext libdir=../../../..") or raise
|
||||||
|
ENV["RUBYLIB"] = [File.expand_path(dummy_rake_compiler_dir), File.expand_path(build_dir), ENV.fetch("RUBYLIB", nil)].compact.join(":")
|
||||||
end
|
end
|
||||||
|
|
||||||
if gem == "minitest"
|
if gem == "minitest"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue