Skip to content

Commit

Permalink
[Build] Improve formatting of build script output for Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
appleguy committed Apr 23, 2016
1 parent bbdbb3d commit 613832f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ before_install:
- brew outdated carthage || brew upgrade carthage
- gem install cocoapods -v 0.38.2
- gem install xcpretty
- gem install xcpretty-travis-formatter
# - gem install slather
- xcrun simctl list
install: echo "<3"
Expand Down
16 changes: 8 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [ "$MODE" = "tests" ]; then
-scheme AsyncDisplayKit \
-sdk "$SDK" \
-destination "$PLATFORM" \
build test | xcpretty
build test | xcpretty -f `xcpretty-travis-formatter`
trap - EXIT
exit 0
fi
Expand All @@ -45,7 +45,7 @@ if [ "$MODE" = "examples" ]; then
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build | xcpretty
build | xcpretty -f `xcpretty-travis-formatter`
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
local_repo=`pwd`
Expand All @@ -55,12 +55,12 @@ if [ "$MODE" = "examples" ]; then
echo "git \"file://${local_repo}\" \"${current_branch}\"" > "Cartfile"
carthage update --platform iOS

xcodebuild \
set -o pipefail && xcodebuild \
-project "Sample.xcodeproj" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build
build | xcpretty -f `xcpretty-travis-formatter`

cd ../..
fi
Expand All @@ -72,25 +72,25 @@ fi
if [ "$MODE" = "life-without-cocoapods" ]; then
echo "Verifying that AsyncDisplayKit functions as a static library."

xcodebuild \
set -o pipefail && xcodebuild \
-workspace "smoke-tests/Life Without CocoaPods/Life Without CocoaPods.xcworkspace" \
-scheme "Life Without CocoaPods" \
-sdk "$SDK" \
-destination "$PLATFORM" \
build
build | xcpretty -f `xcpretty-travis-formatter`
trap - EXIT
exit 0
fi

if [ "$MODE" = "framework" ]; then
echo "Verifying that AsyncDisplayKit functions as a dynamic framework (for Swift/Carthage users)."

xcodebuild \
set -o pipefail && xcodebuild \
-project "smoke-tests/Framework/Sample.xcodeproj" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build
build | xcpretty -f `xcpretty-travis-formatter`
trap - EXIT
exit 0
fi
Expand Down

0 comments on commit 613832f

Please sign in to comment.