This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 20
20
RSPEC_CI : true
21
21
# This tells rspec-rails what branch to run in ci
22
22
RSPEC_VERSION : ' = 3.14.0.pre'
23
- COVERAGE_ONLY_ON : " 3.3 "
23
+ ENFORCE_COVERAGE_AFTER : " 3.1 "
24
24
jobs :
25
25
rubocop :
26
26
name : Rubocop
Original file line number Diff line number Diff line change @@ -24,18 +24,15 @@ begin
24
24
# Simplecov emits some ruby warnings when loaded, so silence them.
25
25
old_verbose , $VERBOSE = $VERBOSE, false
26
26
27
- skip_because_no_coverage = ENV [ 'NO_COVERAGE' ]
28
- skip_because_wrong_version = ENV [ 'COVERAGE_ONLY_ON' ] && ENV [ 'COVERAGE_ONLY_ON' ] . to_f != RUBY_VERSION . to_f
29
-
30
- unless skip_because_no_coverage || skip_because_wrong_version
27
+ unless ENV [ 'NO_COVERAGE' ] || RUBY_VERSION . to_f < 2.1
31
28
require 'simplecov'
32
29
33
30
SimpleCov . start do
34
31
root File . expand_path ( "../.." , __FILE__ )
35
32
add_filter %r{/bundle/}
36
33
add_filter %r{/tmp/}
37
34
add_filter %r{/spec/}
38
- minimum_coverage ( 100 ) if RUBY_VERSION . to_f >= 3.1
35
+ minimum_coverage ( 100 ) if RUBY_VERSION . to_f >= ENV [ 'ENFORCE_COVERAGE_AFTER' ] . to_f
39
36
end
40
37
end
41
38
rescue LoadError # rubocop:disable Lint/SuppressedException
You can’t perform that action at this time.
0 commit comments