mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-26 10:04:32 +08:00
update build script and travis settings
This commit is contained in:
@@ -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
|
||||
|
||||
32
build.sh
32
build.sh
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
github "facebook/AsyncDisplayKit" "92f87756b3635f59fdd6c9f6c497209e3059ac35"
|
||||
github "facebook/AsyncDisplayKit" "eb6aa28d42f3dd547f048d0a4d5cd4787f0647b0"
|
||||
|
||||
Reference in New Issue
Block a user