circleci-coverage_reporter 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +3 -1
- data/lib/circleci/coverage_reporter/configuration.rb +1 -1
- data/lib/circleci/coverage_reporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b4cdc92e39f53cc9d6feca7e80de243b47f373d
|
4
|
+
data.tar.gz: 0d7a2a515139c2d88821453c9452df4b6b5a6abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 985c37b0a460c358fc0f7d3b4e4af999a04654bdef2b45d024c659d927c3d9da827cf403c38ea1096eb35968913db93b8627581008480490018fafd4a0dc2d61
|
7
|
+
data.tar.gz: 820d20ebb038e4c2200dd487508cd990a032ee26bcc615d81544b655c25f87c90c58f0d29eb5785fbc332dbd77852ea7c3e1eaa95bd507d6682cc99ef5b98935
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.3.1] - 2017-03-17
|
10
|
+
### Fixed
|
11
|
+
- Suppress emoji if base diff is NaN or zero
|
12
|
+
|
9
13
|
## [0.3.0] - 2017-03-16
|
10
14
|
### Added
|
11
15
|
- Add template configuration
|
@@ -41,7 +45,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
41
45
|
### Added
|
42
46
|
- Initial release
|
43
47
|
|
44
|
-
[Unreleased]: https://github.com/increments/circleci-coverage_reporter/compare/v0.3.
|
48
|
+
[Unreleased]: https://github.com/increments/circleci-coverage_reporter/compare/v0.3.1...HEAD
|
49
|
+
[0.3.1]: https://github.com/increments/circleci-coverage_reporter/compare/v0.3.0...v0.3.1
|
45
50
|
[0.3.0]: https://github.com/increments/circleci-coverage_reporter/compare/v0.2.0...v0.3.0
|
46
51
|
[0.2.0]: https://github.com/increments/circleci-coverage_reporter/compare/v0.1.3...v0.2.0
|
47
52
|
[0.1.3]: https://github.com/increments/circleci-coverage_reporter/compare/v0.1.2...v0.1.3
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# CircleCI::CoverageReporter
|
2
2
|
|
3
|
-
[![CircleCI](https://circleci.com/gh/increments/circleci-coverage_reporter.svg?style=svg)](https://circleci.com/gh/increments/circleci-coverage_reporter)
|
4
3
|
[![Gem](https://img.shields.io/gem/v/circleci-coverage_reporter.svg)](https://rubygems.org/gems/circleci-coverage_reporter)
|
4
|
+
[![CircleCI](https://img.shields.io/circleci/project/github/increments/circleci-coverage_reporter.svg)](https://circleci.com/gh/increments/circleci-coverage_reporter)
|
5
|
+
[![Gemnasium](https://img.shields.io/gemnasium/increments/circleci-coverage_reporter.svg)](https://gemnasium.com/github.com/increments/circleci-coverage_reporter)
|
6
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/increments/circleci-coverage_reporter.svg)](https://codeclimate.com/github/increments/circleci-coverage_reporter)
|
5
7
|
|
6
8
|
**CircleCI::CoverageReporter** reports test coverage to your GitHub repository.
|
7
9
|
|
@@ -12,7 +12,7 @@ module CircleCI
|
|
12
12
|
<%- reports.each do |report| -%>
|
13
13
|
<%
|
14
14
|
link = "[#{report.reporter.name}](#{report.current_result.url})"
|
15
|
-
emoji = report.base_diff.nil? ? nil : report.base_diff.positive? ? ' :chart_with_upwards_trend:' : ' :chart_with_downwards_trend:'
|
15
|
+
emoji = report.base_diff.nil? || report.base_diff.nan? || report.base_diff.round(2).zero? ? nil : report.base_diff.positive? ? ' :chart_with_upwards_trend:' : ' :chart_with_downwards_trend:'
|
16
16
|
base_progress = report.base_diff ? "[master](#{report.base_result.url}): #{report.pretty_base_diff}" : nil
|
17
17
|
branch_progress = report.branch_diff ? "[previous](#{report.previous_result.url}): #{report.pretty_branch_diff}" : nil
|
18
18
|
progresses = [base_progress, branch_progress].compact
|