nixenvironment 0.0.92 → 0.0.93

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: d9b50dc63d54a91dc4811dc6314199bb9b8647a8
4
- data.tar.gz: 1923b97bc3c0f8a8dba5ea08bb7de170a3203294
3
+ metadata.gz: 8316fdbac243fcb2b668efa67815008c72f52bd4
4
+ data.tar.gz: 0c5bea8f1e7408de15b347043c014fdf45fe289f
5
5
  SHA512:
6
- metadata.gz: e84e1ea1b2048a6b527b6ad0617fda59f721de7a4f1c32a64e8399cfcb100084bdcfb4acae881ac6d3ca7f36831f4815275751cdb1f7bc0aec2237fd592483f8
7
- data.tar.gz: ac83c5fafe0d909a53717e2d232e4be2552cb57ebbdc99c6c401fbcce91f6cc9afea8b16cd8f464b7476a5e49c53fc3f8304ec83fcd883f972378927a7ec6bc3
6
+ metadata.gz: 1eb0577e0c37c2275a6d729752cf2971856c0f0b39600bfd8126abe9076e3a98f0efd8ddf7e20af5cf8645064f17826485843585358e548761c7b38c02272cef
7
+ data.tar.gz: 5d9e8a8c272f9097a9aaff5764ebab4a061609680aa814fa9f70aef17bed09a9d597bba38bc36307eafc728bf4032983101f53ab273554c9295dbbbb20ceaa51
data/bin/nixenvironment CHANGED
@@ -45,6 +45,7 @@ global_option ('--deploy_path VALUE') { |value
45
45
  global_option ('--deploy_username VALUE') { |value| $deploy_username = value }
46
46
  global_option ('--deploy_password VALUE') { |value| $deploy_password = value }
47
47
  global_option ('--deploy_itunesconnect_username VALUE') { |value| $deploy_itunesconnect_username = value }
48
+ global_option ('--deploy_team_name VALUE') { |value| $deploy_team_name = value }
48
49
  global_option ('--icons_path VALUE') { |value| $icons_path = value }
49
50
  global_option ('--xctest_destination_device VALUE') { |value| $xctest_destination_device = value }
50
51
  global_option ('--configuration_files_path VALUE') { |value| $configuration_files_path = value }
@@ -439,6 +440,7 @@ def read_config_settings
439
440
  update_config_settings(DEPLOY_USERNAME_KEY, $deploy_username, table, true)
440
441
  update_config_settings(DEPLOY_PASSWORD_KEY, $deploy_password, table, true)
441
442
  update_config_settings(DEPLOY_ITUNESCONNECT_USERNAME_KEY, $deploy_itunesconnect_username, table, true)
443
+ update_config_settings(DEPLOY_TEAM_NAME_KEY, $deploy_team_name, table, true)
442
444
  update_config_settings(ICONS_PATH_KEY, $icons_path, table, true)
443
445
  update_config_settings(XCTEST_DESTINATION_DEVICE_KEY, $xctest_destination_device, table, true)
444
446
  update_config_settings(CONFIGURATION_FILES_PATH_KEY, $configuration_files_path, table, true)
@@ -710,12 +712,13 @@ def deploy(deliver_deploy, deployment_names)
710
712
  deploy_username = @config_settings[DEPLOY_USERNAME_KEY].blank? ? ENV[DEPLOY_USERNAME_KEY] : @config_settings[DEPLOY_USERNAME_KEY]
711
713
  deploy_password = @config_settings[DEPLOY_PASSWORD_KEY].blank? ? ENV[DEPLOY_PASSWORD_KEY] : @config_settings[DEPLOY_PASSWORD_KEY]
712
714
  deploy_itunesconnect_username = @config_settings[DEPLOY_ITUNESCONNECT_USERNAME_KEY].blank? ? ENV[DEPLOY_ITUNESCONNECT_USERNAME_KEY] : @config_settings[DEPLOY_ITUNESCONNECT_USERNAME_KEY]
715
+ deploy_team_name = @config_settings[DEPLOY_TEAM_NAME_KEY].blank? ? ENV[DEPLOY_TEAM_NAME_KEY] : @config_settings[DEPLOY_TEAM_NAME_KEY]
713
716
 
714
717
  sdk_name = BuildEnvVarsLoader.load_last_build_vars[SDK_NAME_KEY]
715
718
 
716
719
  deploy_path = sdk_name.include?('macos') ? MACOS_PROJECTS_DEPLOY_PATH : ENV[DEPLOY_PATH_KEY]
717
720
  deploy_path = @config_settings[DEPLOY_PATH_KEY] if @config_settings[DEPLOY_PATH_KEY].present?
718
- Deployer.deploy(deploy_host, deploy_path, deploy_username, deploy_password, deploy_itunesconnect_username, deliver_deploy, deployment_names)
721
+ Deployer.deploy(deploy_host, deploy_path, deploy_username, deploy_password, deploy_itunesconnect_username, deploy_team_name, deliver_deploy, deployment_names)
719
722
 
720
723
  success('Deploy complete!')
721
724
  end
@@ -110,6 +110,7 @@ module Nixenvironment
110
110
  DEPLOY_USERNAME_KEY = 'DEPLOY_USERNAME'
111
111
  DEPLOY_PASSWORD_KEY = 'DEPLOY_PASSWORD'
112
112
  DEPLOY_ITUNESCONNECT_USERNAME_KEY = 'DEPLOY_ITUNESCONNECT_USERNAME'
113
+ DEPLOY_TEAM_NAME_KEY = 'DEPLOY_TEAM_NAME'
113
114
 
114
115
  ICONS_PATH_KEY = 'ICONS_PATH'
115
116
  XCTEST_DESTINATION_DEVICE_KEY = 'XCTEST_DESTINATION_DEVICE'
@@ -3,7 +3,7 @@ require 'colorize'
3
3
 
4
4
  module Nixenvironment
5
5
  class Deployer
6
- def self.deploy(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deliver_deploy, deployment_names)
6
+ def self.deploy(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deploy_team_name, deliver_deploy, deployment_names)
7
7
  build_env_vars = BuildEnvVarsLoader.load
8
8
  raise 'Error! Working copy is not clean!' unless BuildEnvVarsLoader.working_copy_is_clean?
9
9
 
@@ -93,7 +93,7 @@ module Nixenvironment
93
93
  if ipa_product_resigned_appstore.present? && File.exist?(ipa_product_resigned_appstore)
94
94
  ipa_count += 1
95
95
  ipa_bundle_id_resigned_appstore = ipa_bundle_id if ipa_bundle_id_resigned_appstore.blank?
96
- deploy_internal(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deliver_deploy,
96
+ deploy_internal(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deploy_team_name, deliver_deploy,
97
97
  ipa_bundle_id_resigned_appstore, ipa_product_resigned_appstore, current_app_version, current_build_version, name_for_deployment_resigned_appstore,
98
98
  executable_name, app_dsym, sdk)
99
99
  end
@@ -101,27 +101,28 @@ module Nixenvironment
101
101
  raise 'Nothing to upload!' if ipa_count == 0
102
102
  end
103
103
 
104
- def self.deploy_internal(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deliver_deploy,
104
+ def self.deploy_internal(deploy_host, deploy_dir, deploy_user, deploy_password, deploy_itunesconnect_user, deploy_team_name, deliver_deploy,
105
105
  ipa_bundle_id, ipa_product, current_app_version, current_build_version, name_for_deployment, executable_name, app_dsym, sdk)
106
- is_macos_build = sdk.include?('macos')
106
+ is_iphone_build = sdk.include?('iphone')
107
107
 
108
108
  local_path_to_app = File.join(Dir.tmpdir, ipa_bundle_id)
109
109
  local_path_to_build = File.join(local_path_to_app, "v.#{current_app_version}_#{current_build_version}")
110
110
  configuration_full_path = File.join(local_path_to_build, name_for_deployment)
111
- destination_ipa_product = File.join(configuration_full_path, executable_name + (is_macos_build ? ZIP_EXT : IPA_EXT))
111
+ destination_ipa_product = File.join(configuration_full_path, executable_name + (is_iphone_build ? IPA_EXT : ZIP_EXT))
112
112
 
113
113
  FileUtils.rm_rf(local_path_to_build)
114
114
  FileUtils.mkdir_p(configuration_full_path)
115
115
  FileUtils.cp_r(ipa_product, destination_ipa_product)
116
116
 
117
- unless is_macos_build
117
+ if is_iphone_build
118
118
  if deploy_itunesconnect_user.present?
119
119
  puts
120
- print 'Starting pilot ...'.blue
120
+ print 'Starting upload to TestFlight ...'.blue
121
121
  puts
122
122
 
123
123
  skip_submission = deliver_deploy ? '' : '--skip_submission'
124
- system("pilot upload -i '#{ipa_product}' -u '#{deploy_itunesconnect_user}' #{skip_submission}")
124
+ team_name = deploy_team_name.present? ? "-r '#{deploy_team_name}'" : ''
125
+ system("pilot upload -i '#{ipa_product}' -u '#{deploy_itunesconnect_user}' #{team_name} #{skip_submission}")
125
126
  end
126
127
 
127
128
  # zip dsym
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.92'
2
+ VERSION = '0.0.93'
3
3
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'terminal-table'
26
26
  spec.add_dependency 'colorize'
27
27
  spec.add_dependency 'CFPropertyList', '= 2.2.8'
28
- spec.add_dependency 'pilot', '~> 1.0.0'
28
+ spec.add_dependency 'pilot', '~> 1.10.0'
29
29
  spec.add_dependency 'nokogiri', '= 1.6.7.2'
30
30
  spec.add_dependency 'net-scp'
31
31
  spec.add_dependency 'activesupport', '= 4.2.6'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nixenvironment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.92
4
+ version: 0.0.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-16 00:00:00.000000000 Z
12
+ date: 2016-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods
@@ -101,14 +101,14 @@ dependencies:
101
101
  requirements:
102
102
  - - ~>
103
103
  - !ruby/object:Gem::Version
104
- version: 1.0.0
104
+ version: 1.10.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ~>
110
110
  - !ruby/object:Gem::Version
111
- version: 1.0.0
111
+ version: 1.10.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: nokogiri
114
114
  requirement: !ruby/object:Gem::Requirement