From 46211bac3428adb0b626ffbf8984c264e992460e Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 3 Sep 2018 22:01:00 +0100 Subject: [PATCH] [build][ci] tweak iOS build workflow --- .circleci/config.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 64ecc39c..06ae79af 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,14 +159,23 @@ jobs: name: Start iPhone 7 Plus simulator (background) background: true command: xcrun simctl boot "iPhone 7 Plus" || true + - run: *packager-jet - run: name: Configure Environment Variables command: | echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV source $BASH_ENV - - run: *restore-brew-cache + # Brew + - restore-cache: *restore-brew-cache - run: *configure-jet-detox-environment - - run: *save-brew-cache + - save-cache: *save-brew-cache + + # Yarn install - to ensure detox post install builds + - restore-cache: *restore-yarn-cache + - run: *yarn + - save-cache: *save-yarn-cache + + # Pods - restore-cache: *restore-pods-cache - run: name: Install CocoaPods + Pod Install @@ -175,12 +184,16 @@ jobs: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf pod install - save-cache: *save-pods-cache + + + # XCode Build - restore-cache: *restore-ios-build-cache - run: name: Build iOS Testing App command: cd tests && yarn run build-ios - - run: *packager-jet - save-cache: *save-ios-build-cache + + # Now Test \o/ - run: name: Run Jet Tests command: cd tests && yarn run test-ios-cover