Skip to content

Commit 5f11ddf

Browse files
author
Zachary Scott
authored
Merge pull request #447 from aycabta/use-nobenchmark-env
Use NOBENCHMARK env
2 parents c5d8415 + 4aec798 commit 5f11ddf

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ rvm:
1616
- rbx-2
1717
- jruby-1.7.25
1818
- jruby-9.1.0.0
19+
env:
20+
global:
21+
NOBENCHMARK=1
1922
script: rake
2023
matrix:
2124
allow_failures:

Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ require 'rdoc/task'
33
require 'bundler/gem_tasks'
44
require 'rake/testtask'
55

6-
ENV['BENCHMARK'] = 'yes'
7-
86
task :docs => :generate
97
task :test => :generate
108

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test_script:
88
- rake
99
deploy: off
1010
environment:
11+
NOBENCHMARK: 1
1112
matrix:
1213
- ruby_version: "193"
1314
- ruby_version: "200"

lib/rdoc/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
end
77

88
require 'minitest/autorun'
9-
require 'minitest/benchmark' if ENV['BENCHMARK']
9+
require 'minitest/benchmark' unless ENV['NOBENCHMARK']
1010

1111
require 'fileutils'
1212
require 'pp'

0 commit comments

Comments
 (0)