message: Enhancements to dependency caching.
diff: @@ -11,7 +11,7 @@ jobs:
  StripePublishableKey: "-"
  MapBoxAPIClientKey: "-"
  - # For caching gems
  + # For caching gems, relative to current directory
  BUNDLE_PATH: vendor/bundle
  steps:
  @@ -33,31 +33,46 @@ jobs:
  - save_cache:
  key: v1-gems-{{ checksum "Example/Gemfile.lock" }}
  paths:
  - - vendor/bundle
  + - Example/vendor/bundle
  - restore_cache:
  keys:
  - - v1-pods-{{ checksum "Example/Podfile.lock" }}
  + - v1-yarn-{{ checksum "yarn.lock" }}
  # Fall back to using the latest cache if no exact match is found.
  - - v1-pods-
  + - v1-yarn-
  - run:
  name: Install Yarn Dependencies
  command: yarn install --ignore-engines
  + - save_cache:
  + key: v1-yarn-{{ checksum "yarn.lock" }}
  + paths:
  + - node_modules
  +
  + - restore_cache:
  + keys:
  + - v1-pods-{{ checksum "Example/Podfile.lock" }}
  + # Fall back to using the latest cache if no exact match is found.
  + - v1-pods-
  +
  - run:
  - name: Install CocoaPods
  - command: cd Example ; bundle exec pod install
  + name: Install CocoaPods Specs If Necessary
  + command: bundle exec pod check || curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
  - run:
  - name: Package JavaScript for Testing
  - command: "yarn bundle:native-ci"
  + name: Install CocoaPods
  + command: cd Example ; bundle exec pod check || bundle exec pod install
  - save_cache:
  key: v1-gems-{{ checksum "Example/Podfile.lock" }}
  paths:
  - Example/Pods
  + - run:
  + name: Package JavaScript for Testing
  + command: "yarn bundle:native-ci"
  +
  - run:
  name: Run Unit Tests
  command: cd Example ; set -o pipefail && xcodebuild -workspace Emission.xcworkspace -scheme "Emission Example" -configuration Debug test -sdk iphonesimulator -destination "platform=iOS Simulator,OS=10.3.1,name=iPhone 6" GCC_PREPROCESSOR_DEFINITIONS="\$GCC_PREPROCESSOR_DEFINITIONS RUNNING_ON_CI=1"
  