Skip to content

Commit

Permalink
Require simplecov (#9)
Browse files Browse the repository at this point in the history
* #8 - Require simplecov automatically

* Newer version of bundler

* Different ruby versions

* Back to 1.7 of bundler for shippable

* Specify 2.0 of bundler during install

* Execute rake

* Install gems.

* Adjust some requirements

* Loosen bundler requirement

* Loosen bundler requirement

* Relax Requirements

* Relax Requirements
  • Loading branch information
jessebs authored Apr 1, 2019
1 parent c94674b commit 5b4bf2d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter

## Continuous Integration
Tested in a CI environment against the following Ruby versions:
* ruby-head
* 2.6
* 2.5
* 2.4
* 2.3
* 2.2
* 2.1
* 2.0
* 1.9

## Known Limitations
* No support for branch coverage
Expand All @@ -57,7 +61,7 @@ Tested in a CI environment against the following Ruby versions:
5. Create a new Pull Request

## License
Copyright 2017 Dashing Rocket, Ltd.
Copyright 2019 Dashing Rocket, Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 4 additions & 2 deletions lib/simplecov-cobertura.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
require 'simplecov'

require 'rexml/document'
require 'rexml/element'

require_relative 'simplecov-cobertura/version'

module SimpleCov
module Formatter
class CoberturaFormatter
VERSION = '1.3.1-dev'

RESULT_FILE_NAME = 'coverage.xml'
DTD_URL = 'http://cobertura.sourceforge.net/xml/coverage-04.dtd'

Expand Down
7 changes: 7 additions & 0 deletions lib/simplecov-cobertura/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module SimpleCov
module Formatter
class CoberturaFormatter
VERSION = '1.3.1-dev'
end
end
end
11 changes: 10 additions & 1 deletion shippable.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
language: ruby

rvm:
- ruby-head
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1
- 2.0.0
- 1.9.3

build:
ci:
- bundle install --gemfile=$SHIPPABLE_GEMFILE $SHIPPABLE_BUNDLER_ARGS
- rake
5 changes: 2 additions & 3 deletions simplecov-cobertura.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'simplecov-cobertura'
require 'simplecov-cobertura/version'

Gem::Specification.new do |spec|
spec.name = 'simplecov-cobertura'
Expand All @@ -21,9 +21,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_development_dependency 'test-unit', '~> 3.2'
spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'nokogiri', '< 1.7'
spec.add_development_dependency 'nokogiri', '~> 1.0'

spec.add_dependency 'simplecov', '~> 0.8'
end

0 comments on commit 5b4bf2d

Please sign in to comment.