From 28776ee1c342c4be755a597812d47d547238a08b Mon Sep 17 00:00:00 2001
From: Xu Cheng <xucheng@me.com>
Date: Mon, 21 Dec 2015 11:18:11 +0800
Subject: [PATCH] tests: add coveralls support

Closes Homebrew/homebrew#47185.

Signed-off-by: Xu Cheng <xucheng@me.com>
---
 Library/Homebrew/test/.simplecov   |  5 +++++
 Library/Homebrew/test/Gemfile      |  1 +
 Library/Homebrew/test/Gemfile.lock | 20 +++++++++++++++++++-
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov
index fb82981869..7989b1b43d 100644
--- a/Library/Homebrew/test/.simplecov
+++ b/Library/Homebrew/test/.simplecov
@@ -23,3 +23,8 @@ if name = ENV["HOMEBREW_INTEGRATION_TEST"]
     exit! exit_code
   end
 end
+
+if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"]
+  require "coveralls"
+  Coveralls.wear!
+end
diff --git a/Library/Homebrew/test/Gemfile b/Library/Homebrew/test/Gemfile
index b156aab8b0..fb546a56a1 100644
--- a/Library/Homebrew/test/Gemfile
+++ b/Library/Homebrew/test/Gemfile
@@ -4,3 +4,4 @@ gem "mocha", "~> 1.1"
 gem "minitest", "~> 5.3"
 gem "rake", "~> 10.3"
 gem "simplecov", "~> 0.10.0", :require => false
+gem "coveralls", "0.8.9", :require => false
diff --git a/Library/Homebrew/test/Gemfile.lock b/Library/Homebrew/test/Gemfile.lock
index 9663a26c47..d897f0c9b3 100644
--- a/Library/Homebrew/test/Gemfile.lock
+++ b/Library/Homebrew/test/Gemfile.lock
@@ -1,24 +1,42 @@
 GEM
   remote: https://rubygems.org/
   specs:
+    coveralls (0.8.9)
+      json (~> 1.8)
+      rest-client (>= 1.6.8, < 2)
+      simplecov (~> 0.10.0)
+      term-ansicolor (~> 1.3)
+      thor (~> 0.19.1)
+      tins (~> 1.6.0)
     docile (1.1.5)
     json (1.8.3)
     metaclass (0.0.4)
-    minitest (5.7.0)
+    mime-types (1.25.1)
+    minitest (5.8.3)
     mocha (1.1.0)
       metaclass (~> 0.0.1)
     rake (10.4.2)
+    rest-client (1.6.9)
+      mime-types (~> 1.16)
     simplecov (0.10.0)
       docile (~> 1.1.0)
       json (~> 1.8)
       simplecov-html (~> 0.10.0)
     simplecov-html (0.10.0)
+    term-ansicolor (1.3.2)
+      tins (~> 1.0)
+    thor (0.19.1)
+    tins (1.6.0)
 
 PLATFORMS
   ruby
 
 DEPENDENCIES
+  coveralls (= 0.8.9)
   minitest (~> 5.3)
   mocha (~> 1.1)
   rake (~> 10.3)
   simplecov (~> 0.10.0)
+
+BUNDLED WITH
+   1.11.2
-- 
GitLab