Skip to content

Instantly share code, notes, and snippets.

@jaleksynas
Last active March 5, 2019 17:51
Show Gist options
  • Save jaleksynas/a490a716a10bc90a128002d670a087cd to your computer and use it in GitHub Desktop.
Save jaleksynas/a490a716a10bc90a128002d670a087cd to your computer and use it in GitHub Desktop.
Basic Fastlane concepts
# Welcome to Fastlane!
# Here are a few examples of the most basic building blocks
# NOTICE: Although syntactically correct, this cannot run
# without further configuration and -- of course --
# an iOS project!
# To discover what actions are avaialble:
# => fastlane actions
# To see all the configuration options available for an action try:
# => fastlane action <action_name>
default_platform :ios
platform :ios do
desc "A basic lane that calls a few actions"
lane :build_and_upload do
wave_from "the top." # function: call a ruby function
build_ios_app # action: build an IPA of an iOS application
upload_to_app_store # action: upload the IPA to the AppStore
end
desc "A lane that calls a private_lane"
lane :build_test_upload do
build_with_tests # private_lane: call another private lane
upload_to_app_store # action: upload the IPA to the AppStore
end
desc "A lane that can only be called by other lanes, not from the command-line"
private_lane :build_with_tests do
wave_from "private lane." # function: call a ruby function
run_tests # action: run tests
build_ios_app # action: build an IPA of an iOS application
end
# Example ruby function
def wave_from(phrase)
UI.message "👋 from #{phrase}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment