Skip to content

Commit

Permalink
Run pod install for example project before building.
Browse files Browse the repository at this point in the history
  • Loading branch information
baumatron committed May 19, 2017
1 parent aa76410 commit be0dd46
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ matrix:
- XCODEBUILD_PLATFORM='OS X' XCODEBUILD_ACTION=build
- xcode_scheme: KeenClientExampleObjCCocoaPods
xcode_sdk: iphonesimulator10.3
env: XCODEBUILD_WORKSPACE=Examples/KeenClientExampleObjC/KeenClientExampleObjCCocoaPods/KeenClientExampleObjCCocoaPods.xcworkspace XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build
env: POD_INSTALL=true XCODEBUILD_WORKSPACE=Examples/KeenClientExampleObjC/KeenClientExampleObjCCocoaPods/KeenClientExampleObjCCocoaPods.xcworkspace XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build

before_install:
- gem install bundler
Expand Down
1 change: 1 addition & 0 deletions bin/simulate_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export TRAVIS_XCODE_SCHEME=KeenClientExampleObjCCocoaPods
export TRAVIS_XCODE_SDK=iphonesimulator10.3
export XCODEBUILD_PLATFORM='iOS Simulator'
export XCODEBUILD_ACTION=build
export POD_INSTALL=true
$BUILD_SCRIPT
11 changes: 11 additions & 0 deletions bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ if [[ -z "$XCODEBUILD_WORKSPACE" ]]; then
XCODEBUILD_WORKSPACE=$TRAVIS_XCODE_WORKSPACE
fi

case "$POD_INSTALL" in
true)
pushd $(dirname $XCODEBUILD_WORKSPACE)
pod install
popd
;;
*)
echo "$0: Not running pod install."
;;
esac

xcodebuild \
-workspace $XCODEBUILD_WORKSPACE \
-scheme $TRAVIS_XCODE_SCHEME \
Expand Down

0 comments on commit be0dd46

Please sign in to comment.