less noisy fastlane slack notifications

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Chad 2018-08-17 11:14:11 +02:00 committed by Igor Mandrigin
parent 6a03d90432
commit 70bd6d0070
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 14 additions and 9 deletions

View File

@ -15,7 +15,7 @@
def unlock_keychain_if_needed def unlock_keychain_if_needed
if ENV["KEYCHAIN_PASSWORD"] if ENV["KEYCHAIN_PASSWORD"]
unlock_keychain( unlock_keychain(
path:"login.keychain", path:"login.keychain",
password:ENV["KEYCHAIN_PASSWORD"], password:ENV["KEYCHAIN_PASSWORD"],
set_default: true) set_default: true)
end end
@ -34,7 +34,7 @@ def upload_to_saucelabs(file)
upload_result = sh( upload_result = sh(
"curl", "curl",
"-u", username + ':' + key, "-u", username + ':' + key,
"-X", "POST", "-X", "POST",
"-H", "Content-Type: application/octet-stream", "-H", "Content-Type: application/octet-stream",
url, url,
# this command has `status-react/fastlane` as cwd # this command has `status-react/fastlane` as cwd
@ -49,7 +49,7 @@ def upload_to_saucelabs(file)
end end
# builds an ios app with ad-hoc configuration and put it # builds an ios app with ad-hoc configuration and put it
# to "status-adhoc" output folder # to "status-adhoc" output folder
def build_ios_adhoc def build_ios_adhoc
match( match(
@ -86,7 +86,8 @@ def notify_about_new_build(source, url)
slack( slack(
message: msg, message: msg,
slack_url: ENV["SLACK_URL"] slack_url: ENV["SLACK_URL"],
default_payloads: []
) )
change_id = ENV["CHANGE_ID"] change_id = ENV["CHANGE_ID"]
@ -161,7 +162,8 @@ platform :ios do
slack( slack(
message: "New nightly build uploaded to TestFlight", message: "New nightly build uploaded to TestFlight",
slack_url: ENV["SLACK_URL"] slack_url: ENV["SLACK_URL"],
default_payloads: []
) )
# additional .ipa is for diawi # additional .ipa is for diawi
@ -198,7 +200,8 @@ platform :ios do
) )
slack( slack(
message: "New release build uploaded to TestFlight", message: "New release build uploaded to TestFlight",
slack_url: ENV["SLACK_URL"] slack_url: ENV["SLACK_URL"],
default_payloads: []
) )
end end
@ -235,7 +238,7 @@ platform :ios do
'../ci/download-realm.js', '../ci/download-realm.js',
'../node_modules/realm/scripts', '../node_modules/realm/scripts',
remove_destination: true remove_destination: true
) )
end end
end end
@ -253,7 +256,8 @@ platform :android do
slack( slack(
message: "New nightly build uploaded to Google Play", message: "New nightly build uploaded to Google Play",
slack_url: ENV["SLACK_URL"] slack_url: ENV["SLACK_URL"],
default_payloads: []
) )
end end
lane :release do lane :release do
@ -266,7 +270,8 @@ platform :android do
) )
slack( slack(
message: "New release build uploaded to Google Play", message: "New release build uploaded to Google Play",
slack_url: ENV["SLACK_URL"] slack_url: ENV["SLACK_URL"],
default_payloads: []
) )
end end