fastlane-plugin-run_tests_firebase_testlab 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: ea0d5419e19e90d11bb28c0a63652d340925b8d0e1db26f750b46c87ee073f69
4
- data.tar.gz: 3d34d4954ea60b6278cd05c149a711a8b668a88334b2cecd7fdcd71a6c8f91a8
2
+ SHA1:
3
+ metadata.gz: 4a10d969f2555ff26e10ae66859426c9f32996f5
4
+ data.tar.gz: 264aa03f45c6d91e65cc61f611f1d977c6c689ed
5
5
  SHA512:
6
- metadata.gz: 3b85305fe7fdf5d11924e79ac2324bb0affdad12d9c1e552a96c2e31352df5954a9bdeda9401bf0e4370f5edf3752e2a3d25f91ac2a142ce1b2d4f837121db8a
7
- data.tar.gz: c4316ef306169a49c3c9f6e8d6dab8f1364322ee56bec484ace3d5e083605301237720c8d8f23591408ad5a4f4ca686e0af1d35f994b00daf1e649376fd35219
6
+ metadata.gz: 0c9f8d00706533372151ac7ef8da21bc96434f87eff234aa33e07abb8f0c6131b1087eff5268b803cb5ac22d0df9c2d54d05a0d22c776424dd2ee61054340c25
7
+ data.tar.gz: ce01898eedf65708c75a91a87e699f7e9696a2473b9d645567ac9be486079f1c6877c99f88a20f1956b206e846d706c1edd2dcf135a60a12a4d6cde6f8b67fb5
data/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
  [![Build
5
5
  Status](https://travis-ci.org/pink-room/fastlane-plugin-run_tests_firebase_testlab.svg?branch=master)](https://travis-ci.org/pink-room/fastlane-plugin-run_tests_firebase_testlab)
6
6
 
7
+ Please, read [this](https://medium.com/pink-room-club/android-continuous-integration-using-fastlane-and-circleci-2-0-part-i-7204e2e7b8b) blog post if you want to know better
8
+ how to use this plugin.
9
+
7
10
  ## Getting Started
8
11
 
9
12
  This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-run_tests_firebase_testlab`, add it to your project by running:
@@ -1,6 +1,7 @@
1
1
  module Fastlane
2
2
  module Actions
3
3
  class RunTestsFirebaseTestlabAction < Action
4
+ PIPE = "testlab-pipe"
4
5
  @client_secret_file = "client-secret.json"
5
6
  @test_console_output_file = "instrumentation_output.txt"
6
7
 
@@ -27,16 +28,17 @@ module Fastlane
27
28
  Action.sh("#{Commands.auth} --key-file #{@client_secret_file}")
28
29
 
29
30
  UI.message("Running instrumentation tests in Firebase Test Lab...")
30
- Action.sh("mkfifo pipe")
31
- Action.sh("tee #{@test_console_output_file} < pipe & "\
31
+ remove_pipe_if_exists
32
+ Action.sh("mkfifo #{PIPE}")
33
+ Action.sh("tee #{@test_console_output_file} < #{PIPE} & "\
32
34
  "#{Commands.run_tests} "\
33
35
  "--type instrumentation "\
34
36
  "--app #{params[:app_apk]} "\
35
37
  "--test #{params[:android_test_apk]} "\
36
38
  "--device model=#{params[:model]},version=#{params[:version]},locale=#{params[:locale]},orientation=#{params[:orientation]} "\
37
39
  "--timeout #{params[:timeout]} "\
38
- "#{params[:extra_options]} > pipe 2>&1")
39
- Action.sh("rm pipe")
40
+ "#{params[:extra_options]} > #{PIPE} 2>&1")
41
+ remove_pipe_if_exists
40
42
 
41
43
  UI.message("Create firebase directory (if not exists) to store test results.")
42
44
  FileUtils.mkdir_p(params[:output_dir])
@@ -193,6 +195,12 @@ module Fastlane
193
195
  end
194
196
 
195
197
  private_class_method :scrape_bucket_url
198
+
199
+ def self.remove_pipe_if_exists
200
+ Action.sh("rm #{PIPE}") if File.exist?(PIPE)
201
+ end
202
+
203
+ private_class_method :remove_pipe_if_exists
196
204
  end
197
205
  end
198
206
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RunTestsFirebaseTestlab
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-run_tests_firebase_testlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Correia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-17 00:00:00.000000000 Z
11
+ date: 2018-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.7.3
171
+ rubygems_version: 2.5.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Runs Android tests in Firebase Test Lab.