[build][ci] tweak iOS build workflow

This commit is contained in:
Salakar 2018-09-03 22:01:00 +01:00
parent c6466fafef
commit 46211bac34
1 changed files with 16 additions and 3 deletions

View File

@ -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