Skip to content

Commit

Permalink
Simplify Detox cache
Browse files Browse the repository at this point in the history
  • Loading branch information
charpeni committed Mar 6, 2020
1 parent 12f547a commit 4c7047b
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,17 @@ aliases:
name: Restore Yarn Package Cache
keys:
- v1-yarn-packages-{{ checksum "yarn.lock" }}
- &save-cache-detox-pods
- &save-cache-detox
save_cache:
key: v1-detox-pods-{{ checksum "yarn.lock"}}
paths:
- ios/Pods
- &restore-cache-detox-pods
restore_cache:
name: Restoring Detox Pods Cache
keys:
- v1-detox-pods-{{ checksum "yarn.lock"}}
- &save-cache-detox-yarn
save_cache:
key: v1-detox-yarn-{{ checksum "yarn.lock"}}
key: v1-detox-{{ checksum "yarn.lock"}}
paths:
- node_modules
- &restore-cache-detox-yarn
- ios/Pods
- &restore-cache-detox
restore_cache:
name: Restoring Detox Yarn Package Cache
name: Restoring Detox Cache
keys:
- v1-detox-yarn-{{ checksum "yarn.lock"}}
- v1-detox-{{ checksum "yarn.lock"}}
- &save-android-build-cache
save_cache:
paths:
Expand Down Expand Up @@ -100,16 +91,14 @@ jobs:
<<: *ios
steps:
- *attach-workspace
- *restore-cache-detox-yarn
- *restore-cache-detox-pods
- *restore-cache-detox
- run:
name: Yarn version
command: yarn -v
- run:
name: Yarn Install
command: |
yarn install --frozen-lockfile --no-progress --non-interactive --cache-folder ~/.cache/yarn
- *save-cache-detox-yarn
- run:
name: Install Detox
command: |
Expand All @@ -124,15 +113,14 @@ jobs:
- run:
name: Install Pods
command: cd ios && pod install
- *save-cache-detox-pods
- run:
name: Run Detox on iOS
command: yarn e2e:ios
- *save-cache-detox
test-hermes:
<<: *android
steps:
- *attach-workspace
- *restore-cache-detox-yarn
- *restore-android-build-cache
- run:
name: Yarn version
Expand All @@ -141,7 +129,6 @@ jobs:
name: Yarn Install
command: |
yarn install --frozen-lockfile --no-progress --non-interactive --cache-folder ~/.cache/yarn
- *save-cache-detox-yarn
- run:
name: Enable Hermes
command: sed -i "s/enableHermes:\sfalse/enableHermes:\ true/g" android/app/build.gradle
Expand Down

0 comments on commit 4c7047b

Please sign in to comment.