Created
January 5, 2020 16:34
-
-
Save tedgonzalez/782f5bc5131075e653d99f308dc70919 to your computer and use it in GitHub Desktop.
Cache cocoapods when using circleci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - restore_cache: | |
| key: 1-pods-{{ checksum "Podfile.lock" }} | |
| - run: | |
| name: Install CocoaPods | |
| command: | | |
| if [ ! -d "Pods" ] | |
| then | |
| curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf | |
| bundle exec pod install | |
| fi | |
| - save_cache: | |
| key: 1-pods-{{ checksum "Podfile.lock" }} | |
| paths: | |
| - ./Pods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tedgonzalez
I'm so sorry about the late reply, and thanks for your kind answer!