1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Make Coveralls opt-in

Due to looking for a value of 'false' whenever I run tests locally
without the `COVERAGE` env variable coverage is very slowly, still
calculated - it then aborts without doing anything because I'm not using
a CI setup.

This adds the setting in for Travis to opt in and should exclude
coverage work for anyone running tests locally.
This commit is contained in:
Paul Thornthwaite 2014-01-28 17:58:26 +00:00
parent 0aad0e5e7d
commit 043d0a014d
2 changed files with 3 additions and 1 deletions

View file

@ -4,6 +4,8 @@ gemfile:
- Gemfile - Gemfile
- Gemfile.1.8.7 - Gemfile.1.8.7
env: COVERAGE=true
rvm: rvm:
- 1.8.7 - 1.8.7
- 1.9.2 - 1.9.2

View file

@ -1,6 +1,6 @@
require 'simplecov' require 'simplecov'
if ENV['COVERAGE'] != 'false' && RUBY_VERSION != "1.9.2" if ENV['COVERAGE'] == 'true' && RUBY_VERSION != "1.9.2"
require 'coveralls' require 'coveralls'
SimpleCov.command_name "shindo:#{Process.pid.to_s}" SimpleCov.command_name "shindo:#{Process.pid.to_s}"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[