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:
2929
3030matrix :
3131 include :
32+ - rvm : 2.3.1
33+ jdk : oraclejdk8
34+ env : COVERAGE=1
3235 - rvm : jruby-head
3336 jdk : oraclejdk8
3437 env : TRUFFLE=1
Original file line number Diff line number Diff line change 2020group :testing do
2121 gem 'rspec' , '~> 3.3.0'
2222 gem 'timecop' , '~> 0.7.4'
23+ end
2324
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
2731end
2832
2933group :benchmarks do
Original file line number Diff line number Diff line change 11$VERBOSE = nil # suppress our deprecation warnings
22
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'
86
9- if ENV [ 'TRAVIS' ]
10- SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
7+ if ENV [ 'TRAVIS' ]
8+ SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
119 SimpleCov ::Formatter ::HTMLFormatter ,
1210 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
1715
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/'
2421 end
2522end
2623
You can’t perform that action at this time.
0 commit comments