blob: 4b82fd61f2a88dbad4fef013fa00a77c8cb19889 [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
platform :ios do
desc "Runs all the tests"
lane :test do
scan
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
ensure_git_status_clean
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,
type: "appstore",
)
increment_build_number
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