Skip to content

Commit

Permalink
Add log to Fastfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CognitiveDisson committed Jan 30, 2017
1 parent dd7f0bc commit c7ce849
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,35 @@ lane :beta do |options|
lock_when_sleeps: true,
password: SecureRandom.base64
)
UI.message 'Keychain created'

# Import distribution certificate
import_certificate(
certificate_path: 'fastlane/certificates/distribution.p12',
certificate_password: ENV['KEY_PASSWORD'],
keychain_name: keychain_name
)
UI.message 'Сertificate has been imported to keychain'

# Prepare project
update_app_identifier(
xcodeproj: ENV['XCODEPROJ_NAME'],
app_identifier: ENV['APP_IDENTIFIER'],
plist_path: ENV['INFO_PLIST_PATH']
)
UI.message 'App identifier has been updated'
sigh(
username: ENV['APPLE_ID'],
app_identifier: ENV['APP_IDENTIFIER'],
team_id: ENV['TEAM_ID']
)
UI.message 'Sigh completed'

# Setting up the icon badge
shield_text = options[:shield_text]
shield_data = "#{shield_text}-blue"
badge(shield: shield_data, dark: true)
UI.message 'Badge changed'

# Building the ipa file of the enterprise build
gym(
Expand All @@ -41,6 +46,7 @@ lane :beta do |options|
use_legacy_build_api: true,
export_method: 'enterprise'
)
UI.message 'Successfully Build'

# Uploading
hockey(
Expand All @@ -50,9 +56,11 @@ lane :beta do |options|
status: '2',
notes: last_git_commit[:message]
)
UI.message 'Successfully uploaded to hockey'

# Delete keychain
delete_keychain(name: keychain_name)
UI.message 'Keychain was removed'

if is_ci?
download_link = Actions.lane_context[Actions::SharedValues::HOCKEY_DOWNLOAD_LINK]
Expand Down

0 comments on commit c7ce849

Please sign in to comment.