Skip to content

Commit 206e1a2

Browse files
committed
printing xcpretty & xcodebuild versions in Configs
1 parent 29a5fa1 commit 206e1a2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

step.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ fi
5151

5252
set +e
5353

54+
xcpretty_version=""
5455
if [[ "${output_tool}" == "xcpretty" ]] ; then
5556
xcpretty_version=$(xcpretty --version)
5657
exit_code=$?
57-
if [[ $exit_code != 0 || -z $xcpretty_version ]] ; then
58+
if [[ $exit_code != 0 || -z "$xcpretty_version" ]] ; then
5859
echo
5960
echo " (!) xcpretty is not installed"
6061
echo " For xcpretty installation see: 'https://github.com/supermarin/xcpretty',"
@@ -96,8 +97,11 @@ fi
9697
# Print configs
9798
echo
9899
echo "========== Configs =========="
99-
echo " * CONFIG_xcode_project_action: ${CONFIG_xcode_project_action}"
100100
echo " * output_tool: ${output_tool}"
101+
if [[ "${output_tool}" == "xcpretty" ]] ; then
102+
echo " * xcpretty version: ${xcpretty_version}"
103+
fi
104+
echo " * xcodebuild version: $(xcodebuild -version)"
101105
echo " * project_path: ${project_path}"
102106
echo " * scheme: ${scheme}"
103107
echo " * workdir: ${workdir}"
@@ -108,6 +112,9 @@ echo " * dsym_zip_path: ${dsym_zip_path}"
108112
echo " * is_force_code_sign: ${is_force_code_sign}"
109113
echo " * is_clean_build: ${is_clean_build}"
110114
echo " * configuration: ${configuration}"
115+
echo " * CONFIG_xcode_project_action: ${CONFIG_xcode_project_action}"
116+
echo "============================="
117+
echo
111118

112119
if [ ! -z "${export_options_path}" ] ; then
113120
echo " * export_options_path: ${export_options_path}"

0 commit comments

Comments
 (0)