Skip to content

Commit 864a81b

Browse files
committed
refactor(rakefile): Adjust rakefile to allow coverage generation on local machines
1 parent 6bcf6fe commit 864a81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ end
3737

3838
desc "Run tests and generate a code coverage report"
3939
task :coverage do
40-
ENV["COVERAGE"] = "true" if ENV["TRAVIS_RUBY_VERSION"] == "2.5.1"
40+
ENV["COVERAGE"] = "true" if ENV["TRAVIS_RUBY_VERSION"] == "2.5.1" || ENV["CI"].nil?
4141
Rake::Task["test"].execute
4242
end
4343

0 commit comments

Comments
 (0)