fastlane-plugin-aws_device_farm 0.3.10.pre.alpha.pre.90 → 0.3.10.pre.alpha.pre.97

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
  SHA256:
3
- metadata.gz: b69cf91f70798c4bcf7694fc3a5ffecb88929dcef1ee2b671329553c177655d7
4
- data.tar.gz: 222e07887fe4455abdb5d9f34d37ea73a081b2ac3692ab40617fdb26a2d33545
3
+ metadata.gz: 2f08081e2bc9bda1c82f1367b8f13ec409165d28bfcedb3b2920c1bc4c0a6a56
4
+ data.tar.gz: 56412d3cf532b6d86eac0aa311cdeabc734fae3323f940d891dc3ed14f2907ab
5
5
  SHA512:
6
- metadata.gz: b5c5a8781619959c7344a67e07d68e38aea43c1a1f98d4d350beb3f659cf7daf77861c509c0019fdf8f2d93a7a63765bdeb213dbdabd83d3a2ede7361539a0bf
7
- data.tar.gz: 3193dd87a4571f6bbcb07ebfda2721ce4ec86c5f8eb32b035361d1d146bef20c2325c38e281575b139a79c27a688f41183fd3fbb74c8bd23236212376b4ac180
6
+ metadata.gz: 48097b4bf57d1e0ebb228d71152b3eccb500a2ac93771663832001c833c29be9a7328a318a020dfe553c69165c2c774a4f8dbd3e7557919daf06defa893ab0b3
7
+ data.tar.gz: 3cfc9f2ed8b68362bb779809a538e5d7ac6fdcde39e388240a56928092e0963dc393b2b29ea93e469a7b84ed6c06c8cad9fe0192f422a892be1fc5b1dac4c6d9
@@ -12,7 +12,7 @@ module Fastlane
12
12
 
13
13
  # Fetch the project
14
14
  project = fetch_project params[:name]
15
- raise "Project '#{params[:name]}' not be found on AWS - please go to 'Device Farm' and create a project named: 'fastlane', or set the 'name' parameter with your custom message." if project.nil?
15
+ raise "Project '#{params[:name]}' not found on AWS - please go to 'Device Farm' and create a project named: 'fastlane', or set the 'name' parameter with your custom message." if project.nil?
16
16
 
17
17
  # Fetch the device pool.
18
18
  device_pool = fetch_device_pool project, params[:device_pool]
@@ -36,7 +36,9 @@ module Fastlane
36
36
  else
37
37
  if type == "ANDROID_APP"
38
38
  test_upload = create_project_upload project, test_path, 'INSTRUMENTATION_TEST_PACKAGE'
39
- else
39
+ elsif params[:is_unit_test] == true
40
+ test_upload = create_project_upload project, test_path, 'XCTEST_TEST_PACKAGE'
41
+ else
40
42
  test_upload = create_project_upload project, test_path, 'XCTEST_UI_TEST_PACKAGE'
41
43
  end
42
44
  end
@@ -354,9 +356,12 @@ module Fastlane
354
356
  if params[:test_type]
355
357
  test_hash[:type] = params[:test_type]
356
358
  else
357
- test_hash[:type] = 'XCTEST_UI'
358
359
  if type == "ANDROID_APP"
359
360
  test_hash[:type] = 'INSTRUMENTATION'
361
+ elsif params[:is_unit_test] == true
362
+ test_hash[:type] = 'XCTEST'
363
+ else
364
+ test_hash[:type] = 'XCTEST_UI'
360
365
  end
361
366
  end
362
367
 
@@ -53,6 +53,17 @@ module Fastlane
53
53
  is_string: true,
54
54
  optional: true,
55
55
  default_value: "Development"
56
+ ),
57
+ FastlaneCore::ConfigItem.new(
58
+ key: :is_unit_test,
59
+ env_name: 'FL_AWS_DEVICE_FARM_IS_UNIT_TEST',
60
+ description: 'Specify is_unit_test to true if this is an iOS unit test',
61
+ is_string: false,
62
+ optional: true,
63
+ default_value: false,
64
+ verify_block: proc do |value|
65
+ UI.user_error!("Please pass a valid value for is_unit_test. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
66
+ end
56
67
  )
57
68
  ]
58
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-aws_device_farm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10.pre.alpha.pre.90
4
+ version: 0.3.10.pre.alpha.pre.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk