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:
parent
12bf9b7ea8
commit
0e0cb7dbae
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user