codeclimate_circle_ci_coverage 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/codeclimate_circle_ci_coverage/coverage_reporter.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGJmMzM3ZWQxMjIzZTQ3NDQ5ZDEwMGRmMGI1ZjAzYjlmZDY4YTlhZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjA5NmMyNjA4ZjVhMTVjZGNjZmZkMzQ3OGI0NTg0ZjNmNDFhZmUyMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTAwNzJiYTQxYWVmMzAxYjcxMTU1ODc0Y2RlYWY5NzUxYjM0YjAxNTU0OTU0
|
10
|
+
YmFmYjRkNDg1OTExOTdlNDkxMGY4MGZkZGFhNDRiYTgyNjA4M2U0NzYzZTc1
|
11
|
+
YWFmMDI2NTJkOWZhYzE3NWNlNGZjOThjZWZhNGJjNTMwM2JiMjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGJhMTlhMWUxNDgyMzYwMDU4MDJmNDJmZWRjMzkyNTJjYzBkZWE1ZDE4NjI4
|
14
|
+
YWU2YzUyMTFmYjRmMDM2N2NkN2I0NGQzYjRkNTFiM2QwYWVkMGQxYmU0YzE1
|
15
|
+
Y2M1YWIzMDc1YWE2MDhhMTUxNmIyMmY5ODc5OTQyMDNmYjZkOTU=
|
@@ -40,6 +40,7 @@ class CoverageReporter
|
|
40
40
|
merged_result = load_and_merge_files(all_coverage_dir, final_coverage_dir)
|
41
41
|
output_result_html(merged_result)
|
42
42
|
upload_result_file(merged_result)
|
43
|
+
store_code_climate_payload(merged_result)
|
43
44
|
end
|
44
45
|
|
45
46
|
# Public: Download the .resultset.json files from each of the nodes
|
@@ -106,4 +107,14 @@ class CoverageReporter
|
|
106
107
|
codeclimate_formatter = CodeClimate::TestReporter::Formatter.new
|
107
108
|
codeclimate_formatter.format(merged_result)
|
108
109
|
end
|
110
|
+
|
111
|
+
# Internal: Debug function, in use to try to determine why codeclimate
|
112
|
+
# is marking some lines of comments as "relevant" lines.
|
113
|
+
def store_code_climate_payload(merged_result)
|
114
|
+
ENV["CODECLIMATE_TO_FILE"] = "true"
|
115
|
+
codeclimate_formatter = CodeClimate::TestReporter::Formatter.new
|
116
|
+
codeclimate_formatter.format(merged_result)
|
117
|
+
ensure
|
118
|
+
ENV["CODECLIMATE_TO_FILE"] = nil
|
119
|
+
end
|
109
120
|
end
|