fastlane-plugin-bluepill 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -7
- data/lib/fastlane/plugin/bluepill/actions/bluepill_action.rb +29 -4
- data/lib/fastlane/plugin/bluepill/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c93d3d47c315460cbda414c6f2e1bc9a3be2e24f
|
4
|
+
data.tar.gz: 3c295dccc0df0b84bc75d2f40f1ba642aa2b7d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc78b5ac8313a54aafd74834ff7ef7a3f9e8ee17c15da08d89dfc890caf84eb7e8fd76bb55c641292f613afb2a15fc4686feddd58b58a3e3341bab09b493829
|
7
|
+
data.tar.gz: 85f70e2395eca4c37d664087b59e7ea5642f4e631ac4b362bd37032be7459fe511d2535a4faa5f6d6f2198c4d1d623da256abf66c6a8c2dce371ceed7a0d0e97
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Bluepill plugin
|
2
2
|
|
3
3
|
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-bluepill)
|
4
4
|
|
@@ -10,18 +10,14 @@ This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To ge
|
|
10
10
|
fastlane add_plugin bluepill
|
11
11
|
```
|
12
12
|
|
13
|
-
## About
|
13
|
+
## About Bluepill
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
15
|
+
[Bluepill](https://github.com/linkedin/bluepill) is powered by LinkedIn. By using this plugin, you can run iOS tests in parallel using multiple simulators.
|
18
16
|
|
19
17
|
## Example
|
20
18
|
|
21
19
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
20
|
|
23
|
-
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
|
24
|
-
|
25
21
|
## Run tests for this plugin
|
26
22
|
|
27
23
|
To run both the tests, and code style validation, run
|
@@ -3,7 +3,14 @@ module Fastlane
|
|
3
3
|
class BluepillAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
UI.message("Start test by using Bluepill: https://github.com/linkedin/bluepill")
|
6
|
-
|
6
|
+
cmd = "#{bin_bluepill}"
|
7
|
+
cmd << " -a #{params[:app]}"
|
8
|
+
cmd << " -o #{params[:output_dir]}"
|
9
|
+
cmd << " -s #{params[:scheme]}"
|
10
|
+
cmd << " -d \"#{params[:device]}\""
|
11
|
+
cmd << " -n #{params[:number_of_simulators]}"
|
12
|
+
cmd << " -H" if params[:headless]
|
13
|
+
sh cmd
|
7
14
|
end
|
8
15
|
|
9
16
|
def self.bin_bluepill
|
@@ -31,17 +38,35 @@ module Fastlane
|
|
31
38
|
env_name: "BLUEPILL_SCHEME_PATH",
|
32
39
|
description: "scheme path by using bluepill",
|
33
40
|
optional: false,
|
34
|
-
|
41
|
+
is_string: true),
|
35
42
|
FastlaneCore::ConfigItem.new(key: :output_dir,
|
36
43
|
env_name: "BLUEPILL_OUTPUT_DIR",
|
37
44
|
description: "output directory path by using bluepill",
|
38
45
|
optional: false,
|
39
|
-
|
46
|
+
is_string: true),
|
40
47
|
FastlaneCore::ConfigItem.new(key: :app,
|
41
48
|
env_name: "BLUEPILL_APP_PATH",
|
42
49
|
description: ".app path by using bluepill",
|
43
50
|
optional: false,
|
44
|
-
|
51
|
+
is_string: true),
|
52
|
+
FastlaneCore::ConfigItem.new(key: :device,
|
53
|
+
env_name: "BLUEPILL_DEVICE",
|
54
|
+
description: "device for test use",
|
55
|
+
optional: true,
|
56
|
+
is_string: true,
|
57
|
+
default_value: "iPhone 6"),
|
58
|
+
FastlaneCore::ConfigItem.new(key: :headless,
|
59
|
+
env_name: "BLUEPILL_HEADLESS",
|
60
|
+
description: "run in headless mode (no GUI)",
|
61
|
+
optional: true,
|
62
|
+
is_string: false,
|
63
|
+
default_value: false),
|
64
|
+
FastlaneCore::ConfigItem.new(key: :number_of_simulators,
|
65
|
+
env_name: "BLUEPILL_NUMBER_OF_SIMLATORS",
|
66
|
+
description: "number of simulators to run in parallel. (bluepill only)",
|
67
|
+
optional: true,
|
68
|
+
is_string: false,
|
69
|
+
default_value: 4),
|
45
70
|
]
|
46
71
|
end
|
47
72
|
|