From 3f624ad15be6d1b44c752c22096659f7e8da90a0 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 18 May 2020 13:06:14 -0300 Subject: [PATCH] Save brew cache --- .circleci/config.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 287efaccc..a7add8402 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,6 +60,16 @@ update-fastlane: &update-fastlane bundle install working_directory: ios +restore-brew-cache: &restore-brew-cache + name: Restore Brew cache + key: brew-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }} + +save-brew-cache: &save-brew-cache + name: Save brew cache + key: brew-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }} + paths: + - /usr/local/Homebrew + install-apple-sim-utils: &install-apple-sim-utils name: Install appleSimUtils command: | @@ -119,6 +129,8 @@ jobs: - restore_cache: *restore-npm-cache-mac + - restore_cache: *restore-brew-cache + - run: *install-node - run: *install-apple-sim-utils @@ -139,6 +151,8 @@ jobs: - save_cache: *save-npm-cache-mac + - save_cache: *save-brew-cache + e2e-test-onboarding: <<: *macos @@ -153,6 +167,8 @@ jobs: - restore_cache: *restore-npm-cache-mac + - restore_cache: *restore-brew-cache + - run: *install-node - run: *install-apple-sim-utils @@ -166,8 +182,6 @@ jobs: command: | npx detox test ./e2e/tests/onboarding --configuration ios.sim.release --cleanup - - save_cache: *save-npm-cache-mac - e2e-test-room: <<: *macos @@ -182,6 +196,8 @@ jobs: - restore_cache: *restore-npm-cache-mac + - restore_cache: *restore-brew-cache + - run: *install-node - run: *install-apple-sim-utils @@ -195,8 +211,6 @@ jobs: command: | npx detox test ./e2e/tests/room --configuration ios.sim.release --cleanup - - save_cache: *save-npm-cache-mac - e2e-test-assorted: <<: *macos @@ -211,6 +225,8 @@ jobs: - restore_cache: *restore-npm-cache-mac + - restore_cache: *restore-brew-cache + - run: *install-node - run: *install-apple-sim-utils @@ -224,8 +240,6 @@ jobs: command: | npx detox test ./e2e/tests/assorted --configuration ios.sim.release --cleanup - - save_cache: *save-npm-cache-mac - # Android builds android-build: <<: *defaults