Update Fastlane Runner (#1366)
This commit is contained in:
parent
b0583125f7
commit
fe9a6375aa
|
@ -10,59 +10,6 @@ import Foundation
|
||||||
|
|
||||||
class Fastfile: LaneFile {
|
class Fastfile: LaneFile {
|
||||||
|
|
||||||
// MARK: tag
|
|
||||||
|
|
||||||
func tagLane(withOptions options: [String: String]?) {
|
|
||||||
|
|
||||||
guard let options,
|
|
||||||
let tag = options["tag"] else {
|
|
||||||
puts(message: "ERROR: missing options")
|
|
||||||
exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
guard !gitTagExists(tag: tag) else {
|
|
||||||
puts(message: "ERROR: tag \(tag) already exists")
|
|
||||||
exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
addGitTag(
|
|
||||||
tag: .userDefined(tag),
|
|
||||||
commit: .userDefined(options["commit"])
|
|
||||||
)
|
|
||||||
|
|
||||||
pushGitTags(
|
|
||||||
force: true
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: draft release
|
|
||||||
|
|
||||||
func draftReleaseLane(withOptions options: [String: String]?) {
|
|
||||||
|
|
||||||
guard let options,
|
|
||||||
let repository = options["repository"],
|
|
||||||
let apiToken = options["apiToken"],
|
|
||||||
let tag = options["tag"],
|
|
||||||
let name64 = options["name64"] else {
|
|
||||||
puts(message: "ERROR: missing options")
|
|
||||||
exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
guard let name = decodeBase64(encoded: name64) else {
|
|
||||||
puts(message: "ERROR: name not valid base 64")
|
|
||||||
exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
setGithubRelease(
|
|
||||||
repositoryName: repository,
|
|
||||||
apiToken: .userDefined(apiToken),
|
|
||||||
tagName: tag,
|
|
||||||
name: .userDefined(name),
|
|
||||||
isDraft: true,
|
|
||||||
isGenerateReleaseNotes: true
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: TestFlight
|
// MARK: TestFlight
|
||||||
|
|
||||||
// TODO: verify tvOS
|
// TODO: verify tvOS
|
||||||
|
|
Binary file not shown.
|
@ -272,4 +272,4 @@ public extension DeliverfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.131]
|
// FastlaneRunnerAPIVersion [0.9.132]
|
||||||
|
|
|
@ -11602,9 +11602,13 @@ public func teamName() {
|
||||||
- autoUpdate: Allows an easy upgrade of all users to the current version. To enable set to 'on'
|
- autoUpdate: Allows an easy upgrade of all users to the current version. To enable set to 'on'
|
||||||
- notify: Send email to testers
|
- notify: Send email to testers
|
||||||
- options: Array of options (shake,video_only_wifi,anonymous)
|
- options: Array of options (shake,video_only_wifi,anonymous)
|
||||||
- custom: Array of custom options. Contact support@testfairy.com for more information
|
- custom: Array of custom options. Contact support for more information
|
||||||
- timeout: Request timeout in seconds
|
- timeout: Request timeout in seconds
|
||||||
- tags: Custom tags that can be used to organize your builds
|
- tags: Custom tags that can be used to organize your builds
|
||||||
|
- folderName: Name of the dashboard folder that contains this app
|
||||||
|
- landingPageMode: Visibility of build landing after upload. Can be 'open' or 'closed'
|
||||||
|
- uploadToSaucelabs: Upload file directly to Sauce Labs. It can be 'on' or 'off'
|
||||||
|
- platform: Use if upload build is not iOS or Android. Contact support for more information
|
||||||
|
|
||||||
You can retrieve your API key on [your settings page](https://free.testfairy.com/settings/)
|
You can retrieve your API key on [your settings page](https://free.testfairy.com/settings/)
|
||||||
*/
|
*/
|
||||||
|
@ -11621,7 +11625,11 @@ public func testfairy(apiKey: String,
|
||||||
options: [String] = [],
|
options: [String] = [],
|
||||||
custom: String = "",
|
custom: String = "",
|
||||||
timeout: OptionalConfigValue<Int?> = .fastlaneDefault(nil),
|
timeout: OptionalConfigValue<Int?> = .fastlaneDefault(nil),
|
||||||
tags: [String] = [])
|
tags: [String] = [],
|
||||||
|
folderName: String = "",
|
||||||
|
landingPageMode: String = "open",
|
||||||
|
uploadToSaucelabs: String = "off",
|
||||||
|
platform: String = "")
|
||||||
{
|
{
|
||||||
let apiKeyArg = RubyCommand.Argument(name: "api_key", value: apiKey, type: nil)
|
let apiKeyArg = RubyCommand.Argument(name: "api_key", value: apiKey, type: nil)
|
||||||
let ipaArg = ipa.asRubyArgument(name: "ipa", type: nil)
|
let ipaArg = ipa.asRubyArgument(name: "ipa", type: nil)
|
||||||
|
@ -11637,6 +11645,10 @@ public func testfairy(apiKey: String,
|
||||||
let customArg = RubyCommand.Argument(name: "custom", value: custom, type: nil)
|
let customArg = RubyCommand.Argument(name: "custom", value: custom, type: nil)
|
||||||
let timeoutArg = timeout.asRubyArgument(name: "timeout", type: nil)
|
let timeoutArg = timeout.asRubyArgument(name: "timeout", type: nil)
|
||||||
let tagsArg = RubyCommand.Argument(name: "tags", value: tags, type: nil)
|
let tagsArg = RubyCommand.Argument(name: "tags", value: tags, type: nil)
|
||||||
|
let folderNameArg = RubyCommand.Argument(name: "folder_name", value: folderName, type: nil)
|
||||||
|
let landingPageModeArg = RubyCommand.Argument(name: "landing_page_mode", value: landingPageMode, type: nil)
|
||||||
|
let uploadToSaucelabsArg = RubyCommand.Argument(name: "upload_to_saucelabs", value: uploadToSaucelabs, type: nil)
|
||||||
|
let platformArg = RubyCommand.Argument(name: "platform", value: platform, type: nil)
|
||||||
let array: [RubyCommand.Argument?] = [apiKeyArg,
|
let array: [RubyCommand.Argument?] = [apiKeyArg,
|
||||||
ipaArg,
|
ipaArg,
|
||||||
apkArg,
|
apkArg,
|
||||||
|
@ -11650,7 +11662,11 @@ public func testfairy(apiKey: String,
|
||||||
optionsArg,
|
optionsArg,
|
||||||
customArg,
|
customArg,
|
||||||
timeoutArg,
|
timeoutArg,
|
||||||
tagsArg]
|
tagsArg,
|
||||||
|
folderNameArg,
|
||||||
|
landingPageModeArg,
|
||||||
|
uploadToSaucelabsArg,
|
||||||
|
platformArg]
|
||||||
let args: [RubyCommand.Argument] = array
|
let args: [RubyCommand.Argument] = array
|
||||||
.filter { $0?.value != nil }
|
.filter { $0?.value != nil }
|
||||||
.compactMap { $0 }
|
.compactMap { $0 }
|
||||||
|
@ -13861,4 +13877,4 @@ public let snapshotfile: Snapshotfile = .init()
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.184]
|
// FastlaneRunnerAPIVersion [0.9.185]
|
||||||
|
|
|
@ -212,4 +212,4 @@ public extension GymfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.134]
|
// FastlaneRunnerAPIVersion [0.9.135]
|
||||||
|
|
|
@ -232,4 +232,4 @@ public extension MatchfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.128]
|
// FastlaneRunnerAPIVersion [0.9.129]
|
||||||
|
|
|
@ -52,4 +52,4 @@ public extension PrecheckfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.127]
|
// FastlaneRunnerAPIVersion [0.9.128]
|
||||||
|
|
|
@ -324,4 +324,4 @@ public extension ScanfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.139]
|
// FastlaneRunnerAPIVersion [0.9.140]
|
||||||
|
|
|
@ -96,4 +96,4 @@ public extension ScreengrabfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.129]
|
// FastlaneRunnerAPIVersion [0.9.130]
|
||||||
|
|
|
@ -208,4 +208,4 @@ public extension SnapshotfileProtocol {
|
||||||
|
|
||||||
// Please don't remove the lines below
|
// Please don't remove the lines below
|
||||||
// They are used to detect outdated files
|
// They are used to detect outdated files
|
||||||
// FastlaneRunnerAPIVersion [0.9.123]
|
// FastlaneRunnerAPIVersion [0.9.124]
|
||||||
|
|
Loading…
Reference in New Issue