xcov 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -6
- data/lib/xcov/options.rb +12 -0
- data/lib/xcov/slack_poster.rb +2 -2
- data/lib/xcov/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 370aac073a31396ddcdb03d122c2c3a790da75b8
|
4
|
+
data.tar.gz: 20fdf2918d966c630f15a74a7d507f1c21514eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eead7135a4b6f7750e3ae056e178e8f3e6c13f14ba48047645fc7a7e0e7a51d31843fb9bc34e20131fd402c5908507f4e24d7e13fc85208be24904fa669c9b35
|
7
|
+
data.tar.gz: 2af7c8515a79c6dad885a528afa4d72f295758d111951fa3cd7936f4a5a5762ce15d8d35b5fd421d1ecd0b22b7b00fdbe299e86172d798d4fc3d434eec258873
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
<h3 align="center">
|
2
2
|
<img src="/assets_readme/logo.png" alt="xcov Logo" />
|
3
3
|
</h3>
|
4
|
+
|
4
5
|
-------
|
6
|
+
|
5
7
|
[![Twitter: @carlostify](https://img.shields.io/badge/contact-@carlostify-blue.svg?style=flat)](https://twitter.com/carlostify)
|
6
8
|
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
|
7
9
|
[![Gem](https://img.shields.io/gem/v/xcov.svg?style=flat)](http://rubygems.org/gems/xcov)
|
@@ -52,9 +54,9 @@ xcov -w LystSDK.xcworkspace -s LystSDK -o xcov_output
|
|
52
54
|
* `--workspace` `-w`: Path of your `xcworkspace` file.
|
53
55
|
* `--project` `-p`: Path of your `xcodeproj` file (optional).
|
54
56
|
* `--scheme` `-s`: Scheme of the project to analyze.
|
55
|
-
* `--configuration` `-q`: The configuration used when building the app. Defaults to 'Release'.
|
57
|
+
* `--configuration` `-q`: The configuration used when building the app. Defaults to 'Release' (optional).
|
56
58
|
* `--output_directory` `-o`: Path for the output folder where the report files will be saved.
|
57
|
-
* `--source_directory` `-r`: The path to project's root directory.
|
59
|
+
* `--source_directory` `-r`: The path to project's root directory (optional).
|
58
60
|
* `--derived_data_path` `-j`: Path of your project `Derived Data` folder (optional).
|
59
61
|
* `--minimum_coverage_percentage` `-m`: Raise exception if overall coverage percentage is under this value (ie. 75.0).
|
60
62
|
* `--include_test_targets`: Enables coverage reports for `.xctest` targets.
|
@@ -68,9 +70,11 @@ xcov -w LystSDK.xcworkspace -s LystSDK -o xcov_output
|
|
68
70
|
* `--markdown_report`: Enables the creation of a markdown report (optional).
|
69
71
|
* `--skip_slack`: Add this flag to avoid publishing results on Slack (optional).
|
70
72
|
* `--only_project_targets`: Display the coverage only for main project targets (e.g. skip Pods targets).
|
71
|
-
* `--coveralls_service_name`: Name of the CI service compatible with Coveralls. i.e. travis-ci. This option must be defined along with coveralls_service_job_id.
|
72
|
-
* `--coveralls_service_job_id`: Name of the current job running on a CI service compatible with Coveralls. This option must be defined along with coveralls_service_name.
|
73
|
-
* `--coveralls_repo_token`: Repository token to be used by integrations not compatible with Coveralls.
|
73
|
+
* `--coveralls_service_name`: Name of the CI service compatible with Coveralls. i.e. travis-ci. This option must be defined along with coveralls_service_job_id (optional).
|
74
|
+
* `--coveralls_service_job_id`: Name of the current job running on a CI service compatible with Coveralls. This option must be defined along with coveralls_service_name (optional).
|
75
|
+
* `--coveralls_repo_token`: Repository token to be used by integrations not compatible with Coveralls (optional).
|
76
|
+
* `--slack_username`: The username which is used to publish to slack (optional).
|
77
|
+
* `--slack_message`: The message which is published together with a successful report (optional).
|
74
78
|
|
75
79
|
_**Note:** All paths you provide should be absolute and unescaped_
|
76
80
|
|
@@ -133,7 +137,15 @@ If you want to keep track of the coverage evolution and get some extra features,
|
|
133
137
|
|
134
138
|
## Contributors
|
135
139
|
|
136
|
-
[![nakiostudio](https://avatars2.githubusercontent.com/u/1814571?v=3&s=50)](https://github.com/nakiostudio)
|
140
|
+
[![nakiostudio](https://avatars2.githubusercontent.com/u/1814571?v=3&s=50)](https://github.com/nakiostudio)
|
141
|
+
[![opfeffer](https://avatars3.githubusercontent.com/u/1138127?v=3&s=50)](https://github.com/opfeffer)
|
142
|
+
[![stevenreinisch](https://avatars0.githubusercontent.com/u/675216?v=3&s=50)](https://github.com/stevenreinisch)
|
143
|
+
[![hds](https://avatars0.githubusercontent.com/u/89589?v=3&s=50)](https://github.com/hds)
|
144
|
+
[![michaelharro](https://avatars3.githubusercontent.com/u/318260?v=3&s=50)](https://github.com/michaelharro)
|
145
|
+
[![thelvis4](https://avatars1.githubusercontent.com/u/1589385?v=3&s=50)](https://github.com/thelvis4)
|
146
|
+
[![KrauseFx](https://avatars1.githubusercontent.com/u/869950?v=3&s=50)](https://github.com/KrauseFx)
|
147
|
+
[![BennX](https://avatars1.githubusercontent.com/u/4281635?v=3&s=50)](https://github.com/BennX)
|
148
|
+
|
137
149
|
|
138
150
|
## License
|
139
151
|
This project is licensed under the terms of the MIT license. See the LICENSE file.
|
data/lib/xcov/options.rb
CHANGED
@@ -140,6 +140,18 @@ module Xcov
|
|
140
140
|
is_string: false,
|
141
141
|
default_value: false
|
142
142
|
),
|
143
|
+
FastlaneCore::ConfigItem.new(
|
144
|
+
key: :slack_username,
|
145
|
+
description: "The username which is used to publish to slack",
|
146
|
+
default_value: "xcov",
|
147
|
+
optional: true
|
148
|
+
),
|
149
|
+
FastlaneCore::ConfigItem.new(
|
150
|
+
key: :slack_message,
|
151
|
+
description: "The message which is published together with a successful report",
|
152
|
+
default_value: "Your *xcov* coverage report",
|
153
|
+
optional: true
|
154
|
+
),
|
143
155
|
|
144
156
|
# Exclusion options
|
145
157
|
FastlaneCore::ConfigItem.new(
|
data/lib/xcov/slack_poster.rb
CHANGED
@@ -8,7 +8,7 @@ module Xcov
|
|
8
8
|
|
9
9
|
require 'slack-notifier'
|
10
10
|
notifier = Slack::Notifier.new(Xcov.config[:slack_url])
|
11
|
-
notifier.username =
|
11
|
+
notifier.username = Xcov.config[:slack_username]
|
12
12
|
|
13
13
|
if Xcov.config[:slack_channel].to_s.length > 0
|
14
14
|
notifier.channel = Xcov.config[:slack_channel]
|
@@ -26,7 +26,7 @@ module Xcov
|
|
26
26
|
end
|
27
27
|
|
28
28
|
result = notifier.ping(
|
29
|
-
|
29
|
+
Xcov.config[:slack_message],
|
30
30
|
icon_url: 'https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png',
|
31
31
|
attachments: attachments
|
32
32
|
)
|
data/lib/xcov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Vidal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane
|