File tree Expand file tree Collapse file tree 3 files changed +24
-20
lines changed Expand file tree Collapse file tree 3 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ branches:
29
29
30
30
matrix :
31
31
include :
32
+ - rvm : 2.3.1
33
+ jdk : oraclejdk8
34
+ env : COVERAGE=1
32
35
- rvm : jruby-head
33
36
jdk : oraclejdk8
34
37
env : TRUFFLE=1
Original file line number Diff line number Diff line change 20
20
group :testing do
21
21
gem 'rspec' , '~> 3.3.0'
22
22
gem 'timecop' , '~> 0.7.4'
23
+ end
23
24
24
- # Coverage
25
- gem 'simplecov' , '~> 0.10.0' , :require => false
26
- gem 'coveralls' , '~> 0.8.2' , :require => false
25
+ # made opt-in since it will not install on jruby 1.7
26
+ if ENV [ 'COVERAGE' ]
27
+ group :coverage do
28
+ gem 'simplecov' , '~> 0.10.0' , :require => false
29
+ gem 'coveralls' , '~> 0.8.2' , :require => false
30
+ end
27
31
end
28
32
29
33
group :benchmarks do
Original file line number Diff line number Diff line change 1
1
$VERBOSE = nil # suppress our deprecation warnings
2
2
3
- # we can't use our helpers here because we need to load the gem _after_ simplecov
4
- unless RUBY_ENGINE == 'jruby' && 0 == ( JRUBY_VERSION =~ /^9\. 0\. 0\. 0/ )
5
- if ( ENV [ 'COVERAGE' ] || ENV [ 'CI' ] || ENV [ 'TRAVIS' ] ) && !ENV [ 'NO_COVERAGE' ]
6
- require 'simplecov'
7
- require 'coveralls'
3
+ if ENV [ 'COVERAGE' ]
4
+ require 'simplecov'
5
+ require 'coveralls'
8
6
9
- if ENV [ 'TRAVIS' ]
10
- SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
7
+ if ENV [ 'TRAVIS' ]
8
+ SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
11
9
SimpleCov ::Formatter ::HTMLFormatter ,
12
10
Coveralls ::SimpleCov ::Formatter
13
- ]
14
- else
15
- SimpleCov . formatter = SimpleCov ::Formatter ::HTMLFormatter
16
- end
11
+ ]
12
+ else
13
+ SimpleCov . formatter = SimpleCov ::Formatter ::HTMLFormatter
14
+ end
17
15
18
- SimpleCov . start do
19
- project_name 'concurrent-ruby'
20
- add_filter '/build-tests/'
21
- add_filter '/examples/'
22
- add_filter '/spec/'
23
- end
16
+ SimpleCov . start do
17
+ project_name 'concurrent-ruby'
18
+ add_filter '/build-tests/'
19
+ add_filter '/examples/'
20
+ add_filter '/spec/'
24
21
end
25
22
end
26
23
You can’t perform that action at this time.
0 commit comments