From 9a531853e656ce98c6ea23697d8fb299a69584bf Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 4 Sep 2018 15:28:10 +0100 Subject: [PATCH] misc build --- .circleci/config.yml | 27 +++++++++++---------------- tests/package.json | 2 +- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ec9fdc2a..c5d6a98c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,35 +29,31 @@ aliases: - &save-ios-build-cache paths: - - ~/react-native-firebase/tests/ios/build - key: v1-ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} + - ~/react-native-firebase/tests/ios/build/Build + key: v2-ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} - &restore-ios-build-cache keys: - - v1-ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} - - ios-build-cache-{{ arch }} + - v2-ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} + - v2-ios-build-cache-{{ arch }} - &save-brew-cache paths: - /usr/local/Homebrew - - /usr/local/Cellar - - /usr/local/opt - key: v2-brew-cache-{{ arch }} + - ~/Library/Caches/Homebrew + key: v3-brew-cache-{{ arch }} - &restore-brew-cache keys: - - v2-brew-cache-{{ arch }} + - v3-brew-cache-{{ arch }} - &configure-jet-detox-environment name: Configure Jet + Detox Environment command: | brew install node@8 - brew link --overwrite node@8 --force brew tap wix/brew brew install applesimutils - brew link applesimutils --force brew install watchman - brew link watchman --force touch .watchmanconfig node -v @@ -78,8 +74,7 @@ aliases: - &yarn name: Run Yarn command: | - yarn install --non-interactive --cache-folder ~/.cache/yarn - cd tests && yarn install --non-interactive --cache-folder ~/.cache/yarn + yarn install --non-interactive --cache-folder ~/.cache/yarn & cd tests && yarn install --non-interactive --cache-folder ~/.cache/yarn & wait # ------------------------- # ANALYSE @@ -146,9 +141,6 @@ jobs: <<: *js_defaults steps: - checkout - - restore-cache: *restore-yarn-cache - - run: *yarn - - save-cache: *save-yarn-cache - persist_to_workspace: root: . paths: . @@ -158,6 +150,9 @@ jobs: steps: - attach_workspace: at: ~/react-native-firebase + - restore-cache: *restore-yarn-cache + - run: *yarn + - save-cache: *save-yarn-cache - run: *eslint - run: *validate-flow-declarations - run: *validate-ts-declarations diff --git a/tests/package.json b/tests/package.json index ccf7e099..96429d51 100755 --- a/tests/package.json +++ b/tests/package.json @@ -86,7 +86,7 @@ }, "ios.sim.debug": { "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/testing.app", - "build": "xcodebuild -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build", + "build": "xcodebuild -workspace ios/testing.xcworkspace -scheme testing -parallelizeTargets -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build", "type": "ios.simulator", "name": "iPhone 7 Plus", "logLevel": "error"