Disable to run for bundled gems in test-spec
This commit is contained in:
parent
92eab382e4
commit
76d322b5d2
@ -31,6 +31,16 @@ class MSpecScript
|
|||||||
]
|
]
|
||||||
end
|
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")
|
if ENV.key?("COVERAGE")
|
||||||
set :excludes, ["Coverage"]
|
set :excludes, ["Coverage"]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user