[build][ci] add iOS build

This commit is contained in:
Salakar 2018-09-03 19:38:49 +01:00
parent bc2db72ff5
commit 805da352f0
1 changed files with 43 additions and 5 deletions

View File

@ -15,7 +15,6 @@ aliases:
- ~/.cache/yarn - ~/.cache/yarn
key: v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "tests/package.json" }} key: v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "tests/package.json" }}
# ------------------------- # -------------------------
# INSTALLATION # INSTALLATION
# ------------------------- # -------------------------
@ -86,7 +85,7 @@ macos_defaults: &macos_defaults
version: 2 version: 2
jobs: jobs:
# Set up a Node environment for downstream jobs # Set up a Node environment for downstream jobs
checkout_code: checkout-code:
<<: *js_defaults <<: *js_defaults
steps: steps:
- checkout - checkout
@ -106,17 +105,56 @@ jobs:
- run: *validate-flow-declarations - run: *validate-flow-declarations
- run: *validate-ts-declarations - run: *validate-ts-declarations
jet-test-ios:
<<: *macos_defaults
steps:
- attach_workspace:
at: ~/react-native-firebase
- run: xcrun simctl boot "iPhone 7 Plus" || true
- run:
name: Configure Environment Variables
command: |
echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
- run:
name: Install Node 8
command: |
brew install node@8
brew link node@8
brew tap wix/brew
brew install applesimutils
node -v
- run: *yarn
# Download CocoaPods specs via HTTPS (faster than Git)
# and install CocoaPods.
- run:
name: Install CocoaPods
command: |
cd tests/ios
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
pod install
- run:
name: Build iOS Testing App
command: cd tests && yarn run build-ios
# - run:
# name: Run Jet Tests
# command: cd tests && yarn run test-ios-cover
# ------------------------- # -------------------------
# WORK FLOWS # WORK FLOWS
# ------------------------- # -------------------------
workflows: workflows:
version: 2 version: 2
tests: Test:
jobs: jobs:
# Checkout repo and run Yarn install at root and in tests # Checkout repo and run Yarn install at root and in tests
- checkout_code - checkout-code
# Run lint, flow, and typescript checks # Run lint, flow, and typescript checks
- analyse: - analyse:
requires: requires:
- checkout_code - checkout-code
- jet-test-ios:
requires:
- checkout-code