зеркало из https://github.com/github/ruby.git
common.mk: upgrade benchmark_driver to v0.14
benchmark/driver.rb: deal with breaking changes which are actually introduced for this driver. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
70785c1c5a
Коммит
5b9ff71077
|
@ -44,7 +44,7 @@ if __FILE__ == $0
|
|||
execs: [],
|
||||
rbenvs: [],
|
||||
repeat: 1,
|
||||
verbose: 1,
|
||||
verbose: [],
|
||||
dir: File.dirname(__FILE__),
|
||||
}
|
||||
|
||||
|
@ -72,8 +72,8 @@ if __FILE__ == $0
|
|||
o.on('--repeat-count [NUM]', "Repeat count"){|n|
|
||||
opt[:repeat] = n.to_i
|
||||
}
|
||||
o.on('--verbose [LEVEL]', 'Show some verbose outputs: 0, 1, 2 (default: 1)'){|v|
|
||||
opt[:verbose] = Integer(v)
|
||||
o.on('-v', '--verbose', 'Verbose mode. Multiple -v options increase visilibity (max: 2)'){|v|
|
||||
opt[:verbose] << '-v'
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -94,12 +94,12 @@ if __FILE__ == $0
|
|||
yamls += BenchmarkDriver.new(opt).files
|
||||
|
||||
# Many variables in Makefile are not `foo,bar` but `foo bar`. So it's converted here.
|
||||
execs = opt[:execs].map { |exec| ['--executables', exec.shellsplit.join(',')] }.flatten
|
||||
execs = opt[:execs].map { |exec| ['--executables', exec] }.flatten
|
||||
rbenv = opt[:rbenvs].map { |r| ['--rbenv', r] }
|
||||
|
||||
BenchmarkDriver.run(
|
||||
*yamls, *execs, *rbenv,
|
||||
*yamls, *execs, *rbenv, *opt[:verbose],
|
||||
"--runner=#{opt[:runner]}", "--output=#{opt[:output]}",
|
||||
"--verbose=#{opt[:verbose]}", "--repeat-count=#{opt[:repeat]}",
|
||||
"--repeat-count=#{opt[:repeat]}",
|
||||
)
|
||||
end
|
||||
|
|
|
@ -42,7 +42,7 @@ GEM_PATH =
|
|||
GEM_VENDOR =
|
||||
|
||||
BENCHMARK_DRIVER_GIT_URL = https://github.com/benchmark-driver/benchmark-driver
|
||||
BENCHMARK_DRIVER_GIT_REF = v0.13.2
|
||||
BENCHMARK_DRIVER_GIT_REF = v0.14.0
|
||||
SIMPLECOV_GIT_URL = git://github.com/colszowka/simplecov.git
|
||||
SIMPLECOV_GIT_REF = v0.15.0
|
||||
SIMPLECOV_HTML_GIT_URL = git://github.com/colszowka/simplecov-html.git
|
||||
|
|
Загрузка…
Ссылка в новой задаче