use curl to get cocoapods specs, fix Podfile.lock path

This commit is contained in:
Paul Zabelin
2019-01-21 21:37:23 -08:00
parent d6b36bf880
commit 02391df459

View File

@@ -17,15 +17,17 @@ jobs:
paths:
- vendor/bundle
- restore_cache:
key: 2-pods-{{ checksum "Podfile.lock" }}
key: 2-pods-{{ checksum "Example/Podfile.lock" }}
- run:
name: Install CocoaPods
command: pod install --project-directory=Example
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
pod install --project-directory=Example
- run:
name: Build and run tests
command: xcodebuild -workspace Example/PerspectiveTransform.xcworkspace -scheme Example test -destination "$DESTINATION" | xcpretty -r junit
- save_cache:
key: 1-pods-{{ checksum "Podfile.lock" }}
key: 2-pods-{{ checksum "Example/Podfile.lock" }}
paths:
- Example/Pods
- store_test_results: