Skip to content

Instantly share code, notes, and snippets.

@meehanman
Last active August 10, 2018 12:52
Show Gist options
  • Save meehanman/2a952cbefe307e3d4393d98a64bdcbc9 to your computer and use it in GitHub Desktop.
Save meehanman/2a952cbefe307e3d4393d98a64bdcbc9 to your computer and use it in GitHub Desktop.
Example Fastfile
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do |options|
build_number = increment_build_number(
build_number: latest_testflight_build_number + 1
)
version_number = increment_version_number(
version_number: options[:version_number]
)
automatic_code_signing(use_automatic_signing: false, team_id: "ZYWT646D9K")
sh(
"echo ##teamcity[buildNumber '#{version_number}(#{build_number})']"
)
cert
uuid = sigh(
force: true,
filename: "irishlife.mobileprovision"
)
update_project_provisioning(
target_filter: "IrishLife",
profile: "irishlife.mobileprovision",
build_configuration: options[:configuration]
)
build_app(
scheme: "IrishLife",
configuration: options[:configuration],
clean: true,
silent: true,
output_directory: "/usr/local/Repos/OLS/artifacts/",
output_name: "IrishLife.ipa",
export_method: "app-store",
codesigning_identity: "iPhone Distribution: Irish Life Retail (ZYWT646D9K)",]
export_options: {
signingStyle: "automatic",
provisioningProfiles: {
"com.irishlife.myirishlife" => "com.irishlife.myirishlife AppStore",
}
}
)
if options[:pushToStore]
ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-t DAV"
upload_to_testflight(
ipa: "/usr/local/Repos/OLS/artifacts/IrishLife.ipa",
)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment