diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..cf27a37 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-pro diff --git a/.dependabot/config.yml b/.dependabot/config.yml new file mode 100644 index 0000000..ec01275 --- /dev/null +++ b/.dependabot/config.yml @@ -0,0 +1,7 @@ +--- +version: 1 + +update_configs: + - package_manager: 'ruby:bundler' + directory: '/' + update_schedule: 'daily' diff --git a/.gitignore b/.gitignore index f211644..5102fb1 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ build/ ## Environment normalisation: /.bundle/ +/vendor/ /lib/bundler/man/ # for a library or gem, you might want to ignore these files since the code is diff --git a/Gemfile b/Gemfile index 2d04715..e848044 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ gemspec gem 'rake', :require => false group :test do + gem 'coveralls', '~> 0.8.23' gem 'pry' gem 'rb-readline' gem 'rspec', '~> 3.5.0' diff --git a/README.md b/README.md index b9c170d..9a8e44f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # vmfloaty -[![Gem Version](https://badge.fury.io/rb/vmfloaty.svg)](https://badge.fury.io/rb/vmfloaty) [![Build Status](https://travis-ci.com/puppetlabs/vmfloaty.svg?branch=master)](https://travis-ci.com/puppetlabs/vmfloaty) +[![Gem Version](https://badge.fury.io/rb/vmfloaty.svg)](https://badge.fury.io/rb/vmfloaty) +[![Build Status](https://travis-ci.com/puppetlabs/vmfloaty.svg?branch=master)](https://travis-ci.com/puppetlabs/vmfloaty) +[![Coverage Status](https://coveralls.io/repos/github/puppetlabs/vmfloaty/badge.svg?branch=master)](https://coveralls.io/github/puppetlabs/vmfloaty?branch=master) +[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=puppetlabs/vmfloaty)](https://dependabot.com) A CLI helper tool for [Puppet's vmpooler](https://github.com/puppetlabs/vmpooler) to help you stay afloat. diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 558a0ad..e23a554 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,16 @@ # frozen_string_literal: true +require 'simplecov' +require 'coveralls' + +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +]) +SimpleCov.start do + add_filter %r{^/spec/} +end + require 'vmfloaty' require 'webmock/rspec'