fastlane 2.60.0.beta.20170927010003 → 2.60.0.beta.20170928010003
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a117dfadb97e085078b4d4e3ba30f5ee7798cd7c
|
4
|
+
data.tar.gz: bf439ccb3619b512a582552e6d416eb38f51c28d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d2c4f64c34ea4009750ed2527695ef0d4084ad898b9caaf518f406798c801ab5dc5635172755aac205bbe3b3d37b2991fd4e0f7142665b9780b76ab7b13eb57
|
7
|
+
data.tar.gz: 412909c21d02b981eed2189b1db21b59158ad081a66ac7ee13b2685e08e95238c79dfbdcb8c1e0d8da215facfc51c330e8938400c2b24101d3965d5cd964e9ae
|
@@ -0,0 +1,102 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class SetupCircleCiAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
unless should_run?(params)
|
6
|
+
UI.message "Not running on CI, skipping `setup_circle_ci`"
|
7
|
+
return
|
8
|
+
end
|
9
|
+
|
10
|
+
setup_keychain
|
11
|
+
setup_output_paths(params)
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.setup_output_paths(params)
|
15
|
+
unless ENV["FL_OUTPUT_DIR"]
|
16
|
+
UI.message "Skipping Log Path setup as FL_OUTPUT_DIR is unset"
|
17
|
+
return
|
18
|
+
end
|
19
|
+
|
20
|
+
root = Pathname.new(ENV["FL_OUTPUT_DIR"])
|
21
|
+
ENV["SCAN_OUTPUT_DIRECTORY"] = (root + "scan").to_s
|
22
|
+
ENV["GYM_OUTPUT_DIRECTORY"] = (root + "gym").to_s
|
23
|
+
ENV["FL_BUILDLOG_PATH"] = (root + "buildlogs").to_s
|
24
|
+
ENV["SCAN_INCLUDE_SIMULATOR_LOGS"] = true.to_s
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.setup_keychain
|
28
|
+
unless ENV["MATCH_KEYCHAIN_NAME"].nil?
|
29
|
+
UI.message "Skipping Keychain setup as a keychain was already specified"
|
30
|
+
return
|
31
|
+
end
|
32
|
+
|
33
|
+
keychain_name = "fastlane_tmp_keychain"
|
34
|
+
ENV["MATCH_KEYCHAIN_NAME"] = keychain_name
|
35
|
+
ENV["MATCH_KEYCHAIN_PASSWORD"] = ""
|
36
|
+
|
37
|
+
UI.message "Creating temporary keychain: \"#{keychain_name}\"."
|
38
|
+
Actions::CreateKeychainAction.run(
|
39
|
+
name: keychain_name,
|
40
|
+
default_keychain: true,
|
41
|
+
unlock: true,
|
42
|
+
timeout: 3600,
|
43
|
+
lock_when_sleeps: true,
|
44
|
+
password: ""
|
45
|
+
)
|
46
|
+
|
47
|
+
UI.message("Enabling match readonly mode.")
|
48
|
+
ENV["MATCH_READONLY"] = true.to_s
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.should_run?(params)
|
52
|
+
Helper.is_ci? || params[:force]
|
53
|
+
end
|
54
|
+
|
55
|
+
#####################################################
|
56
|
+
# @!group Documentation
|
57
|
+
#####################################################
|
58
|
+
|
59
|
+
def self.description
|
60
|
+
"Setup the keychain and match to work with CircleCI"
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.details
|
64
|
+
[
|
65
|
+
"- Creates a new temporary keychain for use with match",
|
66
|
+
"- Switches match to `readonly` mode to not create new profiles/cert on CI",
|
67
|
+
"- Sets up log and test result paths to be easily collectible",
|
68
|
+
"",
|
69
|
+
"This action helps with CircleCI integration, add this to the top of your Fastfile if you use CircleCI"
|
70
|
+
].join("\n")
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.available_options
|
74
|
+
[
|
75
|
+
FastlaneCore::ConfigItem.new(key: :force,
|
76
|
+
env_name: "FL_SETUP_CIRCLECI_FORCE",
|
77
|
+
description: "Force setup, even if not executed by CircleCI",
|
78
|
+
is_string: false,
|
79
|
+
default_value: false)
|
80
|
+
]
|
81
|
+
end
|
82
|
+
|
83
|
+
def self.authors
|
84
|
+
["dantoml"]
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.is_supported?(platform)
|
88
|
+
[:ios, :mac].include?(platform)
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.example_code
|
92
|
+
[
|
93
|
+
'setup_circle_ci'
|
94
|
+
]
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.category
|
98
|
+
:misc
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -276,8 +276,8 @@ module Fastlane
|
|
276
276
|
end
|
277
277
|
|
278
278
|
template.gsub!('snapshot', '# snapshot') unless self.tools[:snapshot]
|
279
|
-
template.gsub!('cocoapods', '') unless self.tools[:cocoapods]
|
280
|
-
template.gsub!('carthage', '') unless self.tools[:carthage]
|
279
|
+
template.gsub!('cocoapods', '# cocoapods') unless self.tools[:cocoapods]
|
280
|
+
template.gsub!('carthage', '# carthage') unless self.tools[:carthage]
|
281
281
|
template.gsub!('[[FASTLANE_VERSION]]', Fastlane::VERSION)
|
282
282
|
|
283
283
|
self.tools.each do |key, value|
|
@@ -202,15 +202,19 @@ module Spaceship
|
|
202
202
|
# invalid content provider id
|
203
203
|
#
|
204
204
|
available_teams = teams.collect do |team|
|
205
|
-
|
205
|
+
{
|
206
|
+
team_id: (team["contentProvider"] || {})["contentProviderId"],
|
207
|
+
team_name: (team["contentProvider"] || {})["name"]
|
208
|
+
}
|
206
209
|
end
|
207
210
|
|
208
|
-
result = available_teams.find do |
|
209
|
-
team_id.to_s ==
|
211
|
+
result = available_teams.find do |available_team|
|
212
|
+
team_id.to_s == available_team[:team_id].to_s
|
210
213
|
end
|
211
214
|
|
212
215
|
unless result
|
213
|
-
|
216
|
+
error_string = "Could not set team ID to '#{team_id}', only found the following available teams:\n\n#{available_teams.map { |team| "- #{team[:team_id]} (#{team[:team_name]})" }.join("\n")}\n"
|
217
|
+
raise TunesClient::ITunesConnectError.new, error_string
|
214
218
|
end
|
215
219
|
|
216
220
|
response = request(:post) do |req|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.60.0.beta.
|
4
|
+
version: 2.60.0.beta.20170928010003
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2017-09-
|
18
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: slack-notifier
|
@@ -998,6 +998,7 @@ files:
|
|
998
998
|
- fastlane/lib/fastlane/actions/set_github_release.rb
|
999
999
|
- fastlane/lib/fastlane/actions/set_info_plist_value.rb
|
1000
1000
|
- fastlane/lib/fastlane/actions/set_pod_key.rb
|
1001
|
+
- fastlane/lib/fastlane/actions/setup_circle_ci.rb
|
1001
1002
|
- fastlane/lib/fastlane/actions/setup_jenkins.rb
|
1002
1003
|
- fastlane/lib/fastlane/actions/setup_travis.rb
|
1003
1004
|
- fastlane/lib/fastlane/actions/sh.rb
|