codecov 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/codecov/uploader.rb +13 -4
- data/lib/codecov/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed0ca48c3dd780cf5a2251488549059b08aab513a84d8f8b51b71bcee4a240f
|
4
|
+
data.tar.gz: 7e2326b00a7aeaf5cbe1367274c7a8bde56bfe4da3745512db77f8036f6a4132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f458c90911e47e9ad85134c2bf1eb9be040397ce2c0e8ad4618da9ae0516220614d41621e22fb7940cd4688341cf15ded16bec46cc5912ee134e55704ba6c3
|
7
|
+
data.tar.gz: 164af1f8824b609f30a14471fd22699a4d3e7ea890ba7318e25b5302be3295baca7d69d152118748d1b638643b3753c3880cb55bdf4aea4e15c684697710be64
|
data/CHANGELOG.md
CHANGED
data/lib/codecov/uploader.rb
CHANGED
@@ -49,15 +49,15 @@ class Codecov::Uploader
|
|
49
49
|
response = false
|
50
50
|
end
|
51
51
|
|
52
|
-
if
|
52
|
+
net_blockers(:on) if disable_net_blockers
|
53
|
+
|
54
|
+
unless response
|
53
55
|
report['result'] = { 'uploaded' => false }
|
56
|
+
raise StandardError.new 'Could not upload reports to Codecov' unless ::Codecov.pass_ci_if_error
|
54
57
|
return report
|
55
58
|
end
|
56
|
-
|
57
59
|
report['result'] = JSON.parse(response)
|
58
60
|
handle_report_response(report)
|
59
|
-
|
60
|
-
net_blockers(:on) if disable_net_blockers
|
61
61
|
report
|
62
62
|
end
|
63
63
|
|
@@ -128,6 +128,9 @@ class Codecov::Uploader
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def self.build_params(ci)
|
131
|
+
puts [red('x>'), 'No token specified or token is empty'].join(' ') if
|
132
|
+
ENV['CODECOV_TOKEN'].nil? || ENV['CODECOV_TOKEN'].empty?
|
133
|
+
|
131
134
|
params = {
|
132
135
|
'token' => ENV['CODECOV_TOKEN'],
|
133
136
|
'flags' => ENV['CODECOV_FLAG'] || ENV['CODECOV_FLAGS'],
|
@@ -451,6 +454,12 @@ class Codecov::Uploader
|
|
451
454
|
|
452
455
|
reports_url = response.body.lines[0]
|
453
456
|
s3target = response.body.lines[1]
|
457
|
+
|
458
|
+
if s3target.nil? || s3target.empty?
|
459
|
+
puts red(response.body)
|
460
|
+
return false
|
461
|
+
end
|
462
|
+
|
454
463
|
puts [green('-> '), 'Uploading to'].join(' ')
|
455
464
|
puts s3target
|
456
465
|
|
data/lib/codecov/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codecov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Peak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-08-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simplecov
|
@@ -121,8 +121,8 @@ licenses:
|
|
121
121
|
- MIT
|
122
122
|
metadata:
|
123
123
|
bug_tracker_uri: https://github.com/codecov/codecov-ruby/issues
|
124
|
-
changelog_uri: https://github.com/codecov/codecov-ruby/blob/v0.
|
125
|
-
documentation_uri: http://www.rubydoc.info/gems/codecov/0.
|
124
|
+
changelog_uri: https://github.com/codecov/codecov-ruby/blob/v0.6.0/CHANGELOG.md
|
125
|
+
documentation_uri: http://www.rubydoc.info/gems/codecov/0.6.0
|
126
126
|
homepage_uri: https://github.com/codecov/codecov-ruby
|
127
127
|
source_code_uri: https://github.com/codecov/codecov-ruby
|
128
128
|
post_install_message:
|