fastlane-plugin-codecov_reporter 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: e5ae7ecac3f80063af005e59afacedfd190b1071
4
- data.tar.gz: fb4367cc29dc141cf44bb10b44c085b49a7a5faa
3
+ metadata.gz: b1ded4e7d4fcc234307774f85d8b3b6a2b3404bc
4
+ data.tar.gz: 6e0d19e94fd73807accbaf2f6c8d246a9b0bf1c7
5
5
  SHA512:
6
- metadata.gz: 04ecb618a61fdd33b424c32a4aed87acc14810fb4f6dd6a84e75bc1ac122ed2e81ca846962bf154b790cadc8700e407a22639fab2fbc8a4b9c2e7bd9e7526810
7
- data.tar.gz: 13dbabcfe309d88af0f68d2b9d6246e1e0b3c24f6ded6c25784ee3903adb4209691e1fd6f98ff3e98d3f4920a7efb16b2cce4adc5756bdc44543183d8abc2f97
6
+ metadata.gz: 476d8a7484b3ed5d6e5c4940b4416907dc36aba2fc4d0cd0b3da6a81c6475133f80bb7a0dfb5b88e31f86be7bec32d1fc7ddc3138f5cbb6ba1fde8a1d9867b89
7
+ data.tar.gz: e41fe8ba986357da02fce356721ea71a7dcd0b974721c2abac6010294243305523fbb2ef49ee4b7470fbc6139ea94926a47c90a3189c0b545bc3402e99434a36
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # codecov_reporter plugin
2
2
 
3
- [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-codecov_reporter)
3
+ ### [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-codecov_reporter) [![Build Status](https://travis-ci.org/BinaryBeard/fastlane-plugin-codecov_reporter.svg?branch=master)](https://travis-ci.org/BinaryBeard/fastlane-plugin-codecov_reporter)
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -4,13 +4,17 @@ module Fastlane
4
4
  def self.run(params)
5
5
  UI.message "I am Getting the latest bash script from Codecov.io"
6
6
  sh "curl -s -N https://Codecov.io/bash > #{ENV['PWD']}/codecov_reporter.sh"
7
- if params[:token] != false then
7
+
8
+ params[:token] ||= false
9
+
10
+ if params[:token] != false
8
11
  UI.message "It looks like I'm working with a private repository"
9
- sh "bash #{ENV['PWD']}/codecov_reporter.sh -t #{params[:token]}"
12
+ sh "bash #{ENV['PWD']}/codecov_reporter.sh -K -t #{params[:token]}"
10
13
  else
11
14
  UI.message "It looks like I'm working with a public repository"
12
- sh "bash #{ENV['PWD']}/codecov_reporter.sh"
15
+ sh "bash #{ENV['PWD']}/codecov_reporter.sh -K "
13
16
  end
17
+
14
18
  UI.message "Removing the bash script I got from Codecov.io"
15
19
  sh "rm #{ENV['PWD']}/codecov_reporter.sh"
16
20
  UI.message "Removing the created coverage.txt files"
@@ -32,13 +36,13 @@ module Fastlane
32
36
  end
33
37
 
34
38
  def self.available_options
35
- [
36
- FastlaneCore::ConfigItem.new(key: :token,
37
- env_name: "CODECOV_TOKEN",
38
- description: "Codecov.io private repo token",
39
- is_string: true,
40
- default_value: false)
41
- ]
39
+ [
40
+ FastlaneCore::ConfigItem.new(key: :token,
41
+ env_name: "CODECOV_TOKEN",
42
+ description: "Codecov.io private repo token",
43
+ is_string: true,
44
+ default_value: false)
45
+ ]
42
46
  end
43
47
 
44
48
  def self.is_supported?(platform)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CodecovReporter
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-codecov_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BinaryBeard