Skip to content

Commit ba2424a

Browse files
committed
Only echo the "Installing" message when verbosity level is 0
This message is required to prevent the build from timing out due to lack of log output during long install durations but if the verbosity level is higher than 0 then there will already be output and the message is not useful.
1 parent 42044d3 commit ba2424a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arduino-ci-script.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ function install_ide()
236236
eval "$INSTALLED_IDE_VERSION_LIST_ARRAY"
237237
local IDEversion
238238
for IDEversion in "${IDEversionListArray[@]}"; do
239-
# If the download/installation process is going slowly when installing a lot of IDE versions this function may cause the build to fail due to exceeding Travis CI's 10 minutes without log output timeout so it's necessary to periodically print something.
240-
echo "Installing: $IDEversion"
239+
if [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL" -eq 0 ]]; then
240+
# If the download/installation process is going slowly when installing a lot of IDE versions this function may cause the build to fail due to exceeding Travis CI's 10 minutes without log output timeout so it's necessary to periodically print something.
241+
echo "Installing: $IDEversion"
242+
fi
241243
# Determine download file extension
242244
local tgzExtensionVersionsRegex="1.5.[0-9]"
243245
if [[ "$IDEversion" =~ $tgzExtensionVersionsRegex ]]; then

0 commit comments

Comments
 (0)