Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Make Travis CI output more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ExtremeMan committed Dec 10, 2019
1 parent b1c71eb commit 23a5c39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/travis-ci.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 23a5c39

Please sign in to comment.