Skip to content

Commit 283a141

Browse files
authored
[Infra] Replace xcpretty with xcbeautify in build.sh (#13983)
1 parent 45a5a4d commit 283a141

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ esac
105105
# Source function to check if CI secrets are available.
106106
source scripts/check_secrets.sh
107107

108-
# Runs xcodebuild with the given flags, piping output to xcpretty
108+
# Runs xcodebuild with the given flags, piping output to xcbeautify
109109
# If xcodebuild fails with known error codes, retries once.
110110
function RunXcodebuild() {
111111
echo xcodebuild "$@"
112112

113-
xcpretty_cmd=(xcpretty)
113+
xcbeautify_cmd=(xcbeautify --renderer github-actions)
114114

115115
result=0
116-
xcodebuild "$@" | tee xcodebuild.log | "${xcpretty_cmd[@]}" || result=$?
116+
xcodebuild "$@" | tee xcodebuild.log | "${xcbeautify_cmd[@]}" || result=$?
117117

118118
if [[ $result == 65 ]]; then
119119
ExportLogs "$@"
@@ -122,7 +122,7 @@ function RunXcodebuild() {
122122
sleep 5
123123

124124
result=0
125-
xcodebuild "$@" | tee xcodebuild.log | "${xcpretty_cmd[@]}" || result=$?
125+
xcodebuild "$@" | tee xcodebuild.log | "${xcbeautify_cmd[@]}" || result=$?
126126
fi
127127

128128
if [[ $result != 0 ]]; then

0 commit comments

Comments
 (0)