Skip to content

Commit

Permalink
update build script and travis settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ekurutepe committed Feb 24, 2016
1 parent 1703bd7 commit bb856d8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ osx_image: xcode7.2
before_install:
- brew update
- brew reinstall xctool
- brew reinstall carthage
- gem install cocoapods -v 0.38.2
- gem install slather
- xcrun simctl list
Expand Down
32 changes: 25 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,31 @@ if [ "$MODE" = "examples" ]; then

for example in examples/*/; do
echo "Building $example."
pod install --project-directory=$example
xctool \
-workspace "${example}Sample.xcworkspace" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build

if [ -f "${example}/Podfile" ]; then
echo "Using CocoaPods"
pod install --project-directory=$example

xctool \
-workspace "${example}Sample.xcworkspace" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
cd $example
carthage update --platform iOS

xctool \
-project "Sample.xcodeproj" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build

cd ../..
fi
done
trap - EXIT
exit 0
Expand Down
2 changes: 1 addition & 1 deletion examples/CarthageBuildTest/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "facebook/AsyncDisplayKit" "92f87756b3635f59fdd6c9f6c497209e3059ac35"
github "facebook/AsyncDisplayKit" "eb6aa28d42f3dd547f048d0a4d5cd4787f0647b0"

0 comments on commit bb856d8

Please sign in to comment.