From 02391df459a2ce6e8f45111f1b67aa5ef68d968e Mon Sep 17 00:00:00 2001 From: Paul Zabelin Date: Mon, 21 Jan 2019 21:37:23 -0800 Subject: [PATCH] use curl to get cocoapods specs, fix Podfile.lock path --- .circleci/config.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 84f5b42..4351f48 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: