fastlane 1.37.0 → 1.38.0

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
  SHA1:
3
- metadata.gz: 4793357ce92d97781498a3d157ccf7b5f006d205
4
- data.tar.gz: 85a52b0db7e07c517ce85d7131e3803d579ef41d
3
+ metadata.gz: c47ecdba44d00f8be7eda0a4e7aa41e636d223d2
4
+ data.tar.gz: bb2ba8e26062882f4eab3cead9f71bb0be07b3e8
5
5
  SHA512:
6
- metadata.gz: 13d07ce3a8741163350e4ef5d6a374d7235b9dff8b7f4dfeb28b9156d1b7b16be8b3dc2e81a6a5225d64fa49e8b024ef6962ee62e2b04051dd679e0560d758f8
7
- data.tar.gz: 8aea7f461df3f6924f6613bbfbc803af874c2f9d238d55a2c4fb66aa0213b93e1644e4183bb2e226c53475b1c21ed851f1a2b28c3b4c0bf7a3bbb09e73c026e5
6
+ metadata.gz: b1024f016eaee507a40d456512e1d18040d3458600ea8fdbb95789c18fe268f9c2d09bbdee1ad063923f6576aecb898d6e08108a0f6d4a726dde67998c10d2a6
7
+ data.tar.gz: 1558ef377c2eb85ef02ec6afe085802c554275ac1fd0b1a03740191143149ac256d01e3fe6130fc60e277868fdd6163b1ddc2fefb9576bc5513d9e401631dc6a
@@ -39,7 +39,6 @@ platform :ios do
39
39
  desc "Submit a new Beta Build to Apple TestFlight"
40
40
  desc "This will also make sure the profile is up to date"
41
41
  lane :beta do
42
- snapshot
43
42
  sigh
44
43
  gym[[SCHEME]] # Build your app - more options available
45
44
  pilot
@@ -51,7 +50,6 @@ platform :ios do
51
50
  desc "Deploy a new version to the App Store"
52
51
  lane :deploy do
53
52
  snapshot
54
- desc "** Full Markdown** Support: `code`"
55
53
  sigh
56
54
  gym[[SCHEME]] # Build your app - more options available
57
55
  deliver(force: true)
@@ -14,21 +14,17 @@ module Fastlane
14
14
  FastlaneCore::UpdateChecker.start_looking_for_update('cert') unless Helper.is_test?
15
15
 
16
16
  begin
17
- Dir.chdir(FastlaneFolder.path || Dir.pwd) do
18
- # This should be executed in the fastlane folder
17
+ Cert.config = params # we alread have the finished config
19
18
 
20
- Cert.config = params # we alread have the finished config
19
+ Cert::Runner.new.launch
20
+ cert_file_path = ENV["CER_FILE_PATH"]
21
+ certificate_id = ENV["CER_CERTIFICATE_ID"]
22
+ Actions.lane_context[SharedValues::CERT_FILE_PATH] = cert_file_path
23
+ Actions.lane_context[SharedValues::CERT_CERTIFICATE_ID] = certificate_id
21
24
 
22
- Cert::Runner.new.launch
23
- cert_file_path = ENV["CER_FILE_PATH"]
24
- certificate_id = ENV["CER_CERTIFICATE_ID"]
25
- Actions.lane_context[SharedValues::CERT_FILE_PATH] = cert_file_path
26
- Actions.lane_context[SharedValues::CERT_CERTIFICATE_ID] = certificate_id
25
+ Helper.log.info("Use signing certificate '#{certificate_id}' from now on!".green)
27
26
 
28
- Helper.log.info("Use signing certificate '#{certificate_id}' from now on!".green)
29
-
30
- ENV["SIGH_CERTIFICATE_ID"] = certificate_id # for further use in the sigh action
31
- end
27
+ ENV["SIGH_CERTIFICATE_ID"] = certificate_id # for further use in the sigh action
32
28
  ensure
33
29
  FastlaneCore::UpdateChecker.show_update_status('cert', Cert::VERSION)
34
30
  end
@@ -9,7 +9,7 @@ module Fastlane
9
9
  command << " -T /usr/bin/codesign"
10
10
  command << " -T /usr/bin/security"
11
11
 
12
- Fastlane::Actions.sh command, log: false
12
+ Fastlane::Actions.sh(command, log: false)
13
13
  end
14
14
 
15
15
  def self.description
@@ -20,14 +20,12 @@ module Fastlane
20
20
  [
21
21
  FastlaneCore::ConfigItem.new(key: :keychain_name,
22
22
  env_name: "KEYCHAIN_NAME",
23
- description: "Keychain name into which item",
23
+ description: "Keychain the items should be imported to",
24
24
  optional: false),
25
25
  FastlaneCore::ConfigItem.new(key: :certificate_path,
26
- env_name: "",
27
26
  description: "Path to certificate",
28
27
  optional: false),
29
28
  FastlaneCore::ConfigItem.new(key: :certificate_password,
30
- env_name: "",
31
29
  description: "Certificate password",
32
30
  optional: true)
33
31
  ]
@@ -6,7 +6,8 @@ module Fastlane
6
6
  sh "curl -Lso #{zip_path} #{params[:url]}"
7
7
  Action.sh "unzip -qo '#{zip_path}' -d '#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/Plug-ins'"
8
8
 
9
- Helper.log.info("Plugin #{File.basename(params[:url], '.zip')} installed successfully")
9
+ Helper.log.info("Plugin #{File.basename(params[:url], '.zip')} installed successfully".green)
10
+ Helper.log.info("Please restart Xcode to use the newly installed plugin")
10
11
  end
11
12
 
12
13
  #####################################################
@@ -23,7 +24,8 @@ module Fastlane
23
24
  env_name: "FL_XCODE_PLUGIN_URL",
24
25
  description: "URL for Xcode plugin ZIP file",
25
26
  verify_block: proc do |value|
26
- raise "No URL for InstallXcodePluginAction given, pass using `url: 'url'`".red unless value and !value.empty?
27
+ raise "No URL for InstallXcodePluginAction given, pass using `url: 'url'`".red if value.to_s.length == 0
28
+ raise "URL doesn't use HTTPS".red unless value.start_with?("https://")
27
29
  end)
28
30
  ]
29
31
  end
@@ -2,7 +2,6 @@
2
2
  # rubocop:disable Metrics/AbcSize
3
3
  require 'fastlane/erb_template_helper'
4
4
  require 'ostruct'
5
- require 'shenzhen'
6
5
 
7
6
  module Fastlane
8
7
  module Actions
@@ -28,6 +27,7 @@ module Fastlane
28
27
 
29
28
  class S3Action < Action
30
29
  def self.run(config)
30
+ require 'shenzhen'
31
31
  # Calling fetch on config so that default values will be used
32
32
  params = {}
33
33
  params[:ipa] = config[:ipa]
@@ -34,7 +34,7 @@ module Fastlane
34
34
  end
35
35
  end
36
36
 
37
- Helper.log.info "Going to update the changelog to:\n\n#{changelog}\n\n"
37
+ Helper.log.info "Going to update the changelog to:\n\n#{changelog.yellow}\n\n"
38
38
 
39
39
  if (v = app.edit_version)
40
40
  if v.version != version_number
@@ -40,7 +40,8 @@ module Fastlane
40
40
  skip_unavailable_actions: "-skipUnavailableActions",
41
41
  target: "-target",
42
42
  workspace: "-workspace",
43
- xcconfig: "-xcconfig"
43
+ xcconfig: "-xcconfig",
44
+ enableCodeCoverage: "-enableCodeCoverage"
44
45
  }
45
46
 
46
47
  def self.is_supported?(platform)
@@ -268,6 +269,9 @@ module Fastlane
268
269
  elsif k == :keychain && v.to_s.length > 0
269
270
  # If keychain is specified, append as OTHER_CODE_SIGN_FLAGS
270
271
  "OTHER_CODE_SIGN_FLAGS=\"--keychain #{v}\""
272
+ elsif k == :xcargs && v.to_s.length > 0
273
+ # Add more xcodebuild arguments
274
+ "#{v}"
271
275
  end
272
276
  end.compact.sort
273
277
  end
@@ -299,6 +303,7 @@ module Fastlane
299
303
  ['workspace', 'The workspace to use'],
300
304
  ['scheme', 'The scheme to build'],
301
305
  ['build_settings', 'Hash of additional build information'],
306
+ ['xcargs', 'Pass additional xcodebuild options'],
302
307
  ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
303
308
  ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
304
309
  ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
@@ -340,6 +345,7 @@ module Fastlane
340
345
  ['workspace', 'The workspace to use'],
341
346
  ['scheme', 'The scheme to build'],
342
347
  ['build_settings', 'Hash of additional build information'],
348
+ ['xcargs', 'Pass additional xcodebuild options'],
343
349
  ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
344
350
  ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
345
351
  ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
@@ -374,6 +380,7 @@ module Fastlane
374
380
  ['workspace', 'The workspace to use'],
375
381
  ['scheme', 'The scheme to build'],
376
382
  ['build_settings', 'Hash of additional build information'],
383
+ ['xcargs', 'Pass additional xcodebuild options'],
377
384
  ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
378
385
  ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
379
386
  ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
@@ -408,6 +415,7 @@ module Fastlane
408
415
  ['workspace', 'The workspace to use'],
409
416
  ['scheme', 'The scheme to build'],
410
417
  ['build_settings', 'Hash of additional build information'],
418
+ ['xcargs', 'Pass additional xcodebuild options'],
411
419
  ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
412
420
  ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
413
421
  ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
@@ -438,6 +446,7 @@ module Fastlane
438
446
  ['workspace', 'The workspace to use'],
439
447
  ['scheme', 'The scheme to build'],
440
448
  ['build_settings', 'Hash of additional build information'],
449
+ ['xcargs', 'Pass additional xcodebuild options'],
441
450
  ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
442
451
  ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
443
452
  ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
@@ -456,6 +465,11 @@ module Fastlane
456
465
  params_hash = params || {}
457
466
  params_hash[:build] = true
458
467
  params_hash[:test] = true
468
+
469
+ if params.key? :enable_code_coverage
470
+ params[:enableCodeCoverage] = params[:enable_code_coverage] ? 'YES' : 'NO'
471
+ end
472
+
459
473
  XcodebuildAction.run(params_hash)
460
474
  end
461
475
 
@@ -470,8 +484,10 @@ module Fastlane
470
484
  ['workspace', 'The workspace to use'],
471
485
  ['scheme', 'The scheme to build'],
472
486
  ['build_settings', 'Hash of additional build information'],
487
+ ['xcargs', 'Pass additional xcodebuild options'],
473
488
  ['destination', 'The simulator to use, e.g. "name=iPhone 5s,OS=8.1"'],
474
489
  ['destination_timeout', 'The timeout for connecting to the simulator, in seconds'],
490
+ ['enable_code_coverage', 'Turn code coverage on or off when testing. eg. true|false. Requires Xcode 7+'],
475
491
  ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
476
492
  ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
477
493
  ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
@@ -127,6 +127,7 @@ module Fastlane
127
127
  end
128
128
 
129
129
  def self.load_dot_env(env)
130
+ return if Dir["*.env*"].count == 0
130
131
  require 'dotenv'
131
132
 
132
133
  Actions.lane_context[Actions::SharedValues::ENVIRONMENT] = env if env
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '1.37.0'
2
+ VERSION = '1.38.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-02 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: krausefx-shenzhen
@@ -216,7 +216,7 @@ dependencies:
216
216
  requirements:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
- version: 0.13.0
219
+ version: 0.13.1
220
220
  - - "<"
221
221
  - !ruby/object:Gem::Version
222
222
  version: 1.0.0
@@ -226,7 +226,7 @@ dependencies:
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: 0.13.0
229
+ version: 0.13.1
230
230
  - - "<"
231
231
  - !ruby/object:Gem::Version
232
232
  version: 1.0.0
@@ -436,7 +436,7 @@ dependencies:
436
436
  requirements:
437
437
  - - ">="
438
438
  - !ruby/object:Gem::Version
439
- version: 0.2.0
439
+ version: 0.2.1
440
440
  - - "<"
441
441
  - !ruby/object:Gem::Version
442
442
  version: 1.0.0
@@ -446,7 +446,7 @@ dependencies:
446
446
  requirements:
447
447
  - - ">="
448
448
  - !ruby/object:Gem::Version
449
- version: 0.2.0
449
+ version: 0.2.1
450
450
  - - "<"
451
451
  - !ruby/object:Gem::Version
452
452
  version: 1.0.0
@@ -745,7 +745,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
745
745
  version: '0'
746
746
  requirements: []
747
747
  rubyforge_project:
748
- rubygems_version: 2.4.8
748
+ rubygems_version: 2.4.0
749
749
  signing_key:
750
750
  specification_version: 4
751
751
  summary: Connect all iOS deployment tools into one streamlined workflow