Sha256: b9beaf6e244d05dad864b7b71486337fb09fecc5f21a76a20838677a739d205f
Contents?: true
Size: 581 Bytes
Versions: 24
Compression:
Stored size: 581 Bytes
Contents
require 'timeout' desc "Run Celluloid benchmarks" task :benchmark do # Travis has an out-of-date version of rbx that rashes on the benchmarks exit 0 if ENV['CI'] and RUBY_ENGINE == 'rbx' begin Timeout.timeout(120) do glob = File.expand_path("../../benchmarks/*.rb", __FILE__) Dir[glob].each { |benchmark| load benchmark } end rescue Exception, Timeout::Error => ex puts "ERROR: Couldn't complete benchmark: #{ex.class}: #{ex}" puts " #{ex.backtrace.join("\n ")}" exit 1 unless ENV['CI'] # Hax for running benchmarks on Travis end end
Version data entries
24 entries across 24 versions & 1 rubygems