diff --git a/.circleci/config.yml b/.circleci/config.yml index d6b557a68..c4a6cd71c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -474,6 +474,11 @@ jobs: - checkout - restore_cache: *restore-gems-cache - restore_cache: *restore-npm-cache-mac + - restore_cache: + keys: + - >- + ios-build-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ .Environment.CACHE_VERSION }} + name: Restoring iOS Build caches - run: *install-npm-modules - run: *update-fastlane-ios - save_cache: *save-npm-cache-mac @@ -485,12 +490,22 @@ jobs: brew tap wix/brew brew install applesimutils - run: - name: Run Detox Tests + name: Build command: | /usr/libexec/PlistBuddy -c "Set :bugsnag:apiKey $BUGSNAG_KEY" ./ios/RocketChatRN/Info.plist /usr/libexec/PlistBuddy -c "Set :bugsnag:apiKey $BUGSNAG_KEY" ./ios/ShareRocketChatRN/Info.plist yarn detox build --configuration ios.sim.release yarn detox test --configuration ios.sim.release --cleanup --headless + - save_cache: + key: >- + ios-build-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ .Environment.CACHE_VERSION }} + name: Saving iOS Build Cache + paths: + - ios/build/Build + - run: + name: Run tests + command: | + yarn detox test --configuration ios.sim.release --cleanup --headless ios-build-official: executor: mac-env