codecov 0.5.1 → 0.5.2
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/formatter.rb +0 -1
- data/lib/codecov/uploader.rb +15 -2
- data/lib/codecov/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70bfb5e87efb9db0f4b9141da317062ff710e17daceb7c587454d7be42144851
|
4
|
+
data.tar.gz: 7bcfef401da5bdf95542343fa656db7f7a80ce1e071b1aff4115bd31ad3b43ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 738513034e8e1a07cab86488eaa759a5593e2779cecde51f5b22f1de36e4ea1ce8356dc484d6c24130782a1353b9379ef91d967e528651936b9571be29c29b74
|
7
|
+
data.tar.gz: dca359ac80ef1b937b2305e9c69f857cce1eff1632798329c9349ae9e578b2c8d6654802a6091583406e5bd64f1dae22233c4fdeb24e2bb3fe3164edab9f3df4
|
data/CHANGELOG.md
CHANGED
data/lib/codecov/formatter.rb
CHANGED
data/lib/codecov/uploader.rb
CHANGED
@@ -17,6 +17,7 @@ class Codecov::Uploader
|
|
17
17
|
BITRISE = 'Bitrise CI',
|
18
18
|
BUILDKITE = 'Buildkite CI',
|
19
19
|
CIRCLE = 'Circle CI',
|
20
|
+
CIRRUS = 'Cirrus CI',
|
20
21
|
CODEBUILD = 'Codebuild CI',
|
21
22
|
CODESHIP = 'Codeship CI',
|
22
23
|
DRONEIO = 'Drone CI',
|
@@ -41,8 +42,8 @@ class Codecov::Uploader
|
|
41
42
|
begin
|
42
43
|
response = upload_to_codecov(ci, report)
|
43
44
|
rescue StandardError => e
|
44
|
-
puts
|
45
|
-
puts
|
45
|
+
puts e.message
|
46
|
+
puts e.backtrace.join("\n")
|
46
47
|
raise e unless ::Codecov.pass_ci_if_error
|
47
48
|
|
48
49
|
response = false
|
@@ -87,6 +88,8 @@ class Codecov::Uploader
|
|
87
88
|
BUILDKITE
|
88
89
|
elsif (ENV['CI'] == 'true') && (ENV['CIRCLECI'] == 'true')
|
89
90
|
CIRCLE
|
91
|
+
elsif !ENV['CIRRUS_CI'].nil?
|
92
|
+
CIRRUS
|
90
93
|
elsif ENV['CODEBUILD_CI'] == 'true'
|
91
94
|
CODEBUILD
|
92
95
|
elsif (ENV['CI'] == 'true') && (ENV['CI_NAME'] == 'codeship')
|
@@ -188,6 +191,16 @@ class Codecov::Uploader
|
|
188
191
|
params[:pr] = ENV['CIRCLE_PR_NUMBER']
|
189
192
|
params[:branch] = ENV['CIRCLE_BRANCH']
|
190
193
|
params[:commit] = ENV['CIRCLE_SHA1']
|
194
|
+
when CIRRUS
|
195
|
+
# https://cirrus-ci.org/guide/writing-tasks/#environment-variables
|
196
|
+
params[:branch] = ENV['CIRRUS_BRANCH']
|
197
|
+
params[:build] = ENV['CIRRUS_BUILD_ID']
|
198
|
+
params[:build_url] = "https://cirrus-ci.com/tasks/#{ENV['CIRRUS_TASK_ID']}"
|
199
|
+
params[:commit] = ENV['CIRRUS_CHANGE_IN_REPO']
|
200
|
+
params[:job] = ENV['CIRRUS_TASK_NAME']
|
201
|
+
params[:pr] = ENV['CIRRUS_PR']
|
202
|
+
params[:service] = 'cirrus-ci'
|
203
|
+
params[:slug] = ENV['CIRRUS_REPO_FULL_NAME']
|
191
204
|
when CODEBUILD
|
192
205
|
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
|
193
206
|
# To use CodePipeline as CodeBuild source which sets no branch and slug variable:
|
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.5.
|
4
|
+
version: 0.5.2
|
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-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simplecov
|
@@ -45,20 +45,6 @@ dependencies:
|
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '5.0'
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: minitest-ci
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.0'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: mocha
|
64
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,8 +121,8 @@ licenses:
|
|
135
121
|
- MIT
|
136
122
|
metadata:
|
137
123
|
bug_tracker_uri: https://github.com/codecov/codecov-ruby/issues
|
138
|
-
changelog_uri: https://github.com/codecov/codecov-ruby/blob/v0.5.
|
139
|
-
documentation_uri: http://www.rubydoc.info/gems/codecov/0.5.
|
124
|
+
changelog_uri: https://github.com/codecov/codecov-ruby/blob/v0.5.2/CHANGELOG.md
|
125
|
+
documentation_uri: http://www.rubydoc.info/gems/codecov/0.5.2
|
140
126
|
homepage_uri: https://github.com/codecov/codecov-ruby
|
141
127
|
source_code_uri: https://github.com/codecov/codecov-ruby
|
142
128
|
post_install_message:
|