From 7fc5ecd918e3af6c7b5d0b2e219025321f9a3c2f Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Thu, 5 Sep 2019 09:26:32 +0300 Subject: [PATCH 1/2] Add Coveralls for coverage reports --- k8s-client.gemspec | 1 + spec/spec_helper.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/k8s-client.gemspec b/k8s-client.gemspec index 4b9333f..e285095 100644 --- a/k8s-client.gemspec +++ b/k8s-client.gemspec @@ -35,4 +35,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "webmock", "~> 3.6.2" spec.add_development_dependency "rubocop", "~> 0.59" spec.add_development_dependency 'yajl-ruby', '~> 1.4.0' + spec.add_development_dependency 'coveralls', '~> 0.8' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f6696c1..67a8cd3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,9 @@ require "bundler/setup" require 'webmock/rspec' +require 'coveralls' +Coveralls.wear! + require "k8s-client" require_relative 'helpers/fixture_helpers' From 6c4b2d74499bce74706fcd40de7e97b3f16d7942 Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Thu, 5 Sep 2019 09:31:25 +0300 Subject: [PATCH 2/2] Add badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7eefc23..ca72f7c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # K8s::Client [![Build Status](https://travis-ci.com/kontena/k8s-client.svg?branch=master)](https://travis-ci.com/kontena/k8s-client) +[![Coverage Status](https://coveralls.io/repos/github/kontena/k8s-client/badge.svg)](https://coveralls.io/github/kontena/k8s-client) [![Gem Version](https://badge.fury.io/rb/k8s-client.svg)](https://badge.fury.io/rb/k8s-client) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/kontena/k8s-client/master)