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

Commit

Permalink
[Build] Some performance optimizations for the build, and now using x…
Browse files Browse the repository at this point in the history
…cpretty to make raw xcodebuild slightly less horrible / more like xctool.
  • Loading branch information
appleguy committed Apr 22, 2016
1 parent af0c2f5 commit 324a73f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
language: objective-c
osx_image: xcode7.3
git:
depth: 10
before_install:
- brew update
- brew reinstall --HEAD xctool
- brew reinstall carthage
- brew outdated xctool || brew upgrade xctool
- brew outdated carthage || brew upgrade carthage
- gem install cocoapods -v 0.38.2
- gem install slather
- gem install xcpretty
# - gem install slather
- xcrun simctl list
install: echo "<3"
env:
Expand All @@ -14,8 +17,9 @@ env:
- MODE=life-without-cocoapods
- MODE=framework
script: ./build.sh $MODE
after_success:
- slather

#after_success:
# - slather

# whitelist
branches:
Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ MODE="$1"
if [ "$MODE" = "tests" ]; then
echo "Building & testing AsyncDisplayKit."
pod install
xcodebuild \
set -o pipefail && xcodebuild \
-workspace AsyncDisplayKit.xcworkspace \
-scheme AsyncDisplayKit \
-sdk "$SDK" \
-destination "$PLATFORM" \
build test
build test | xcpretty
trap - EXIT
exit 0
fi
Expand All @@ -40,12 +40,12 @@ if [ "$MODE" = "examples" ]; then
echo "Using CocoaPods"
pod install --project-directory=$example

xcodebuild \
set -o pipefail && xcodebuild \
-workspace "${example}Sample.xcworkspace" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build
build | xcpretty
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
local_repo=`pwd`
Expand Down

0 comments on commit 324a73f

Please sign in to comment.