зеркало из https://github.com/github/ruby.git
Disable to run for bundled gems in test-spec
This commit is contained in:
Родитель
92eab382e4
Коммит
76d322b5d2
|
@ -31,6 +31,16 @@ class MSpecScript
|
|||
]
|
||||
end
|
||||
|
||||
# Disable to run for bundled gems in test-spec
|
||||
bundled_gems = File.readlines("gems/bundled_gems").map do |line|
|
||||
next if /^\s*(?:#|$)/ =~ line
|
||||
"library/" + line.split.first
|
||||
end.compact
|
||||
stdlibs = Dir.glob("ruby/library/*").map{|d| d.sub(%r'\Aruby/', '')}
|
||||
|
||||
set :library, stdlibs - bundled_gems
|
||||
set :files, get(:command_line) + get(:language) + get(:core) + get(:library) + get(:security) + get(:optional)
|
||||
|
||||
if ENV.key?("COVERAGE")
|
||||
set :excludes, ["Coverage"]
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче