blob: e36c8a3bc2a6275fb95123e02f70aec73a5cec7e [file] [log] [blame]
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.68.0"
default_platform :ios
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120"
platform :ios do
desc "Runs all the tests"
lane :test do
scan(
scheme: "Ring",
sdk: "iphonesimulator"
)
end
desc "Test build without packaging"
lane :build do
unlock_keychain
match(
force: true,
type: "development"
)
gym(
scheme: "Ring",
clean: true,
configuration: "Development",
export_method: 'development',
skip_codesigning: true,
skip_package_ipa: true
)
end
desc "Submit a new Beta Build to Apple TestFlight"
lane :beta do
unlock_keychain
api_key = app_store_connect_api_key(
key_id: "#{ENV["KEY_ID"]}",
issuer_id: "#{ENV["ISSUER_ID"]}",
key_filepath: "#{ENV["KEY_FILEPATH"]}",
in_house: false,
)
match(
api_key: api_key,
app_identifier: ["com.savoirfairelinux.ring", "com.savoirfairelinux.ring.jamiNotificationExtension"],
type: "appstore"
)
profile_path = ENV["sigh_com.savoirfairelinux.ring_appstore_profile-path"]
profile_path_extension = ENV["sigh_com.savoirfairelinux.ring.jamiNotificationExtension_appstore_profile-path"]
update_project_provisioning(
target_filter: "jamiNotificationExtension",
build_configuration: "Release",
profile: profile_path_extension
)
update_project_provisioning(
target_filter: "Ring",
build_configuration: "Release",
profile: profile_path
)
gym(
scheme: "Ring",
clean: true,
configuration: "Release",
export_method: 'app-store',
)
pilot(
api_key: api_key,
skip_waiting_for_build_processing: true,
)
end
after_all do |lane|
# This block is called, only if the executed lane was successful
end
error do |lane, exception|
# This block is called, only if the executed lane has failed
end
end