Created
January 28, 2016 19:51
-
-
Save donnywals/02da9957696111f99248 to your computer and use it in GitHub Desktop.
The Fastfile I use to speed up app deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastlane_version "1.40.0" | |
default_platform :ios | |
platform :ios do | |
before_all do | |
ensure_git_status_clean | |
end | |
desc "Upload a new Crashlytics beta for quick testing" | |
lane :develop do | |
increment_build_number | |
commit_version_bump | |
sigh(development: true) | |
scan(scheme: 'LookLive') | |
gym(scheme: "LookLive") | |
crashlytics( | |
crashlytics_path: './Pods/Crashlytics/iOS/Crashlytics.framework/', | |
groups: 'b2c-team', | |
api_token: ':secret:', | |
build_secret: ':secret:', | |
notes: File.read("release_notes") | |
) | |
clean_build_artifacts | |
add_git_tag | |
push_to_git_remote | |
end | |
desc "Submit a new Beta Build to Apple TestFlight" | |
desc "This will also make sure the profile is up to date" | |
lane :beta do | |
sigh | |
scan(scheme: 'LookLive') | |
gym(scheme: "LookLive") | |
pilot( | |
skip_submission: true | |
) | |
crashlytics( | |
crashlytics_path: './Pods/Crashlytics/iOS/Crashlytics.framework/', | |
groups: 'internal-testers', | |
api_token: ':secret:', | |
build_secret: ':secret:', | |
notes: File.read("release_notes") | |
) | |
clean_build_artifacts | |
end | |
desc "Deploy a new version to the App Store" | |
lane :deliver do | |
deliver( | |
force: true, | |
skip_screenshots: true | |
) | |
clean_build_artifacts | |
end | |
error do |lane, exception| | |
clean_build_artifacts | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment