Created
September 7, 2017 12:15
-
-
Save f0rr0/a341686caed2ae99a0a8ace5599c9021 to your computer and use it in GitHub Desktop.
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
desc "Submit a new Beta Build to Crashlytics" | |
lane :beta do |options| | |
automatic_code_signing( | |
path: "housing.xcodeproj", | |
use_automatic_signing: true | |
) | |
register_devices(devices_file: "./devices.txt") | |
match( | |
type: "development", | |
force_for_new_devices: true | |
) | |
humanable_build_number(update: true) | |
gym( | |
scheme: "housing", | |
clean: true | |
) | |
crashlytics( | |
api_token: "XXXXXXXX", | |
build_secret: "XXXXXXXX", | |
crashlytics_path: "./Pods/Crashlytics", | |
emails: user_email, | |
groups: "coders,qa", | |
notes: options && options[:notes] ? options[:notes] | |
: "Branch #{git_branch} built by #{user_email}\n#{changelog_from_git_commits( | |
commits_count: sh("git cherry beta | wc -l").to_i, | |
date_format: "short", | |
merge_commit_filtering: "exclude_merges" | |
)}" | |
) | |
release( | |
bundle_identifier: "XXXXXXX", | |
sentry_organisation: "housing", | |
sentry_app_name: "housing-app-staging", | |
deployment_name: "Staging", | |
target_version: "1.0" | |
) | |
slack( | |
slack_url: "https://hooks.slack.com/services/XXXXXXXXXX", | |
payload: { | |
"Build Number" => humanable_build_number, | |
"Built By" => user_email | |
} | |
) | |
add_git_tag( | |
grouping: "ios", | |
prefix: "v", | |
build_number: humanable_build_number | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment