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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1ded4e7d4fcc234307774f85d8b3b6a2b3404bc
|
4
|
+
data.tar.gz: 6e0d19e94fd73807accbaf2f6c8d246a9b0bf1c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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)
|