mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Hide all stdout outputs from the fastlane match step (#14616)
This commit is contained in:
parent
28bf8e7d85
commit
cb53e4e5aa
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue