From 23a5c39abcab0469a3224551faa6a361d80b50e4 Mon Sep 17 00:00:00 2001 From: Aleksey Kononov Date: Tue, 10 Dec 2019 18:27:00 +0300 Subject: [PATCH] Make Travis CI output more readable. --- scripts/travis-ci.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/travis-ci.sh b/scripts/travis-ci.sh index 0a9eb3fc5..87e5f7015 100755 --- a/scripts/travis-ci.sh +++ b/scripts/travis-ci.sh @@ -1,15 +1,15 @@ #!/bin/bash set -e -set -x - -export JAVA_HOME=$(/usr/libexec/java_home -v 1.7) OUTPUT_DIR=$(mktemp -d -t xctool-release) BUILD_OUTPUT_DIR="$OUTPUT_DIR"/build RELEASE_OUTPUT_DIR="$OUTPUT_DIR"/release XCTOOL_DIR=$(cd $(dirname $0)/..; pwd) +[[ -n "${TRAVIS}" ]] && echo "travis_fold:start:build_xctool_tests" +[[ -n "${TRAVIS}" ]] && echo "Build xctool and tests" + # Build xctool with xcodebuild xcodebuild \ build-for-testing \ @@ -22,6 +22,8 @@ xcodebuild \ -IDECustomBuildIntermediatesPath="$BUILD_OUTPUT_DIR/Intermediates" \ XT_INSTALL_ROOT="$RELEASE_OUTPUT_DIR" +[[ -n "${TRAVIS}" ]] && echo "travis_fold:end:build_xctool_tests" + if [[ ! -x "$RELEASE_OUTPUT_DIR"/bin/xctool ]]; then echo "ERROR: xctool binary is missing." exit 1