Hide all stdout outputs from the fastlane match step (#14616)

This commit is contained in:
xster 2018-02-09 20:54:29 -08:00 committed by GitHub
parent 28bf8e7d85
commit cb53e4e5aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,16 @@ skip_docs
default_platform(:ios) default_platform(:ios)
def suppress_output
original_stdout, original_stderr = $stdout.clone, $stderr.clone
$stderr.reopen File.new('/dev/null', 'w')
$stdout.reopen File.new('/dev/null', 'w')
yield
ensure
$stdout.reopen original_stdout
$stderr.reopen original_stderr
end
# This should be run after running # This should be run after running
# flutter build ios --release --no-codesign # flutter build ios --release --no-codesign
# to build the app using the Flutter toolchain. This lane is meant to only # to build the app using the Flutter toolchain. This lane is meant to only
@ -24,13 +34,17 @@ platform :ios do
version_number: /\d+\.\d+\.\d+/.match(raw_version)[0] version_number: /\d+\.\d+\.\d+/.match(raw_version)[0]
) )
puts 'Retrieving signing certificates and profiles...'
# Stop fastlane from echoing back PUBLISHING_MATCH_CERTIFICATE_REPO var.
suppress_output {
# Retrieves all the necessary certs and provisioning profiles. # Retrieves all the necessary certs and provisioning profiles.
sync_code_signing( sync_code_signing(
git_url: ENV['PUBLISHING_MATCH_CERTIFICATE_REPO'], git_url: ENV['PUBLISHING_MATCH_CERTIFICATE_REPO'],
type: 'appstore', type: 'appstore',
readonly: true, readonly: true
verbose: false
) )
}
puts 'Certificates and profiles installed'
# Modify the Xcode project to use the new team and profile. # Modify the Xcode project to use the new team and profile.
# It will put the git state to dirty but Travis will be wiped after # It will put the git state to dirty but Travis will be wiped after