update build script and travis settings

This commit is contained in:
Engin Kurutepe
2016-02-24 15:05:37 +01:00
parent 1703bd77ee
commit bb856d8786
5 changed files with 27 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -1 +1 @@
github "facebook/AsyncDisplayKit" "92f87756b3635f59fdd6c9f6c497209e3059ac35"
github "facebook/AsyncDisplayKit" "eb6aa28d42f3dd547f048d0a4d5cd4787f0647b0"