fastlane-plugin-bluepill 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/bin/bluepill +0 -0
- data/bin/bp +0 -0
- data/lib/fastlane/plugin/bluepill/actions/bluepill_action.rb +25 -8
- data/lib/fastlane/plugin/bluepill/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 460b5e300f079f5a486b08b2bb84be2b0b03d1fa
|
4
|
+
data.tar.gz: a1fbabfee076708ba111e5649639c95b19f398c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d9426dc12a6b75340602596847f03a1bc3a0f49d48e056d94f10f59d4ca2cedf63a6c856eb904bc85cbb58ce4abc802f9a7747291811a848d04ef6262b29c92
|
7
|
+
data.tar.gz: 94fad3d512cae9fe7cf41eb8b4ec84801d51ca22cf8b0ad807d74716d92023353e6b805674d6db19527d91d6c6901fc7be394d0e54a5ae0b99df94aa8f4448b1
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Bluepill plugin
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-bluepill)
|
4
|
+
[](https://travis-ci.org/tbrand/fastlane-plugin-bluepill)
|
5
|
+
[](https://badge.fury.io/rb/fastlane-plugin-bluepill)
|
4
6
|
|
5
7
|
## Getting Started
|
6
8
|
|
@@ -18,6 +20,20 @@ fastlane add_plugin bluepill
|
|
18
20
|
|
19
21
|
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`.
|
20
22
|
|
23
|
+
Sample code
|
24
|
+
```ruby
|
25
|
+
lane :test do
|
26
|
+
bluepill(
|
27
|
+
app: 'path/to/SomeApp.app',
|
28
|
+
scheme: 'path/to/SomeApp.xcscheme',
|
29
|
+
output_dir: 'path/to/output_dir',
|
30
|
+
device: 'iPhone 6',
|
31
|
+
number_of_simulators: 2,
|
32
|
+
headless: true
|
33
|
+
)
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
21
37
|
## Run tests for this plugin
|
22
38
|
|
23
39
|
To run both the tests, and code style validation, run
|
data/bin/bluepill
CHANGED
Binary file
|
data/bin/bp
CHANGED
Binary file
|
@@ -3,13 +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
|
-
cmd =
|
6
|
+
cmd = bin_bluepill.to_s
|
7
7
|
cmd << " -a #{params[:app]}"
|
8
8
|
cmd << " -o #{params[:output_dir]}"
|
9
9
|
cmd << " -s #{params[:scheme]}"
|
10
10
|
cmd << " -d \"#{params[:device]}\""
|
11
11
|
cmd << " -n #{params[:number_of_simulators]}"
|
12
12
|
cmd << " -H" if params[:headless]
|
13
|
+
cmd << " --reuse-simulator" if params[:reuse_simulator]
|
13
14
|
sh cmd
|
14
15
|
end
|
15
16
|
|
@@ -36,43 +37,59 @@ module Fastlane
|
|
36
37
|
[
|
37
38
|
FastlaneCore::ConfigItem.new(key: :scheme,
|
38
39
|
env_name: "BLUEPILL_SCHEME_PATH",
|
39
|
-
description: "scheme path
|
40
|
+
description: "scheme path (.xcscheme)",
|
40
41
|
optional: false,
|
41
42
|
is_string: true),
|
42
43
|
FastlaneCore::ConfigItem.new(key: :output_dir,
|
43
44
|
env_name: "BLUEPILL_OUTPUT_DIR",
|
44
|
-
description: "output directory
|
45
|
+
description: "output directory for bluepill logs and reports",
|
45
46
|
optional: false,
|
46
47
|
is_string: true),
|
47
48
|
FastlaneCore::ConfigItem.new(key: :app,
|
48
49
|
env_name: "BLUEPILL_APP_PATH",
|
49
|
-
description: "
|
50
|
+
description: "app path (.app)",
|
50
51
|
optional: false,
|
51
52
|
is_string: true),
|
52
53
|
FastlaneCore::ConfigItem.new(key: :device,
|
53
54
|
env_name: "BLUEPILL_DEVICE",
|
54
|
-
description: "device for test
|
55
|
-
optional: true,
|
55
|
+
description: "device for using in the test",
|
56
56
|
is_string: true,
|
57
|
+
optional: false,
|
57
58
|
default_value: "iPhone 6"),
|
58
59
|
FastlaneCore::ConfigItem.new(key: :headless,
|
59
60
|
env_name: "BLUEPILL_HEADLESS",
|
60
61
|
description: "run in headless mode (no GUI)",
|
61
|
-
optional: true,
|
62
62
|
is_string: false,
|
63
|
+
optional: false,
|
63
64
|
default_value: false),
|
64
65
|
FastlaneCore::ConfigItem.new(key: :number_of_simulators,
|
65
66
|
env_name: "BLUEPILL_NUMBER_OF_SIMLATORS",
|
66
67
|
description: "number of simulators to run in parallel. (bluepill only)",
|
67
|
-
optional: true,
|
68
68
|
is_string: false,
|
69
|
+
optional: false,
|
69
70
|
default_value: 4),
|
71
|
+
FastlaneCore::ConfigItem.new(key: :reuse_simulator,
|
72
|
+
env_name: "BLUEPILL_REUSE_SIMULATOR",
|
73
|
+
description: "reuse simulator or not",
|
74
|
+
is_string: false,
|
75
|
+
optional: true,
|
76
|
+
default_value: false)
|
70
77
|
]
|
71
78
|
end
|
72
79
|
|
73
80
|
def self.is_supported?(platform)
|
74
81
|
platform == :ios
|
75
82
|
end
|
83
|
+
|
84
|
+
def self.example_code
|
85
|
+
[
|
86
|
+
'bluepill(
|
87
|
+
scheme: "path/to/SomeApp.xcscheme",
|
88
|
+
output_dir: "path/to/output_dir", # Bluepill\'s output dir such as log file
|
89
|
+
app: "path/to/SomeApp.app",
|
90
|
+
)'
|
91
|
+
]
|
92
|
+
end
|
76
93
|
end
|
77
94
|
end
|
78
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-bluepill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tbrand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.5.1
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Fastlane plugin to use bluepill in fastlane
|