1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-02-01 01:37:12 +00:00

Use a more generic detection of a CI environment for coveralls in specs

This commit is contained in:
Holger Just 2020-07-17 15:41:16 +02:00
parent 12bf9b7ea8
commit 0e0cb7dbae
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ matrix:
include:
# Latest Rubies on top
- rvm: 2.7.1
env: COVERAGE=1
env: COVERAGE=true
- rvm: jruby-9.2.12.0
- rvm: truffleruby-20.1.0

View File

@ -5,11 +5,11 @@
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details.
if ENV['COVERAGE']
if ENV['COVERAGE'].to_s == 'true'
require 'simplecov'
require 'coveralls'
if ENV['TRAVIS']
if ENV['CI'] == 'true'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter