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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eda9a2c15cf9bca5603e8da966b08f4e74a880d225b1e367581f231c41bc6c54
4
- data.tar.gz: dd8dfbafe0b700149632bcc252154b64d56324e7539ff535cd1a5a354c93485d
3
+ metadata.gz: 70bfb5e87efb9db0f4b9141da317062ff710e17daceb7c587454d7be42144851
4
+ data.tar.gz: 7bcfef401da5bdf95542343fa656db7f7a80ce1e071b1aff4115bd31ad3b43ac
5
5
  SHA512:
6
- metadata.gz: 84fb4095ba5a0a99f7a4089ca1f391f32703aa5ce8f5e31bb2de1a59dd6b559609d7ca83fa33b44695d9b6b3d34f6828b63435665142ac94a3750c0947895978
7
- data.tar.gz: 1278f5daa1420a6926352164efec3922099d81fce34f6dc6140aa7166ebc54f8ffd3c47c781c3d07ca3d7bbbf4eb589c3ca12145458d1f6edfa0a3c4c43a5184
6
+ metadata.gz: 738513034e8e1a07cab86488eaa759a5593e2779cecde51f5b22f1de36e4ea1ce8356dc484d6c24130782a1353b9379ef91d967e528651936b9571be29c29b74
7
+ data.tar.gz: dca359ac80ef1b937b2305e9c69f857cce1eff1632798329c9349ae9e578b2c8d6654802a6091583406e5bd64f1dae22233c4fdeb24e2bb3fe3164edab9f3df4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### `0.5.2`
2
+ - #141 Add Cirrus CI support
3
+
1
4
  ### `0.5.1`
2
5
  - #138 Update pass_ci_if_error flag
3
6
 
@@ -59,7 +59,6 @@ module Codecov
59
59
 
60
60
  invalid_directories = [
61
61
  'node_modules/',
62
- 'public/',
63
62
  'storage/',
64
63
  'tmp/',
65
64
  'vendor/'
@@ -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 `#{e.message}`
45
- puts `#{e.backtrace.join("\n")}`
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codecov
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
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.1
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-03-03 00:00:00.000000000 Z
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.1/CHANGELOG.md
139
- documentation_uri: http://www.rubydoc.info/gems/codecov/0.5.1
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: