Skip to content

Commit 188522f

Browse files
committed
Add coveralls integration
1 parent c38caf9 commit 188522f

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.*.sw[op]
22
.bundle/
33
pkg/
4+
coverage/
45
Gemfile.lock
56
Gemfile.local

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ facterversion = ENV.key?('FACTER_VERSION') ? ENV['FACTER_VERSION'] : ['>= 1.6']
66
gem 'puppet', puppetversion
77
gem 'puppetlabs_spec_helper', '>= 0.1.0'
88
gem 'facter', facterversion
9+
10+
unless RUBY_VERSION =~ /^1.8/
11+
gem 'coveralls', :require => false
12+
end

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Puppet Oracle Module
22
====================
33

44
[![Build Status](https://travis-ci.org/stschulte/puppet-oracle.png?branch=master)](https://travis-ci.org/stschulte/puppet-oracle)
5+
[![Coverage Status](https://coveralls.io/repos/stschulte/puppet-oracle/badge.svg)](https://coveralls.io/r/stschulte/puppet-oracle)
6+
[![Puppet Forge](https://img.shields.io/puppetforge/v/stschulte/oracle.svg)](https://forge.puppetlabs.com/stschulte/oracle)
57

68
This repository aims to ease the configuration of Oracle
79
Databases with custom types and providers

spec/spec_helper.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
11
require 'rubygems'
2+
3+
unless RUBY_VERSION =~ /^1.8/
4+
require 'simplecov'
5+
require 'coveralls'
6+
end
7+
28
require 'puppetlabs_spec_helper/module_spec_helper'
9+
10+
unless RUBY_VERSION =~ /^1.8/
11+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
12+
SimpleCov::Formatter::HTMLFormatter,
13+
Coveralls::SimpleCov::Formatter
14+
]
15+
SimpleCov.start do
16+
add_filter 'spec/'
17+
end
18+
end

0 commit comments

Comments
 (0)