2
0
mirror of synced 2025-01-09 21:56:15 +00:00

[build][ci] update iOS build

This commit is contained in:
Salakar 2018-09-03 20:07:05 +01:00
parent 1098c45b5e
commit 17d1440da7

View File

@ -10,11 +10,28 @@ aliases:
keys: keys:
- v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "tests/package.json" }} - v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "tests/package.json" }}
- v1-yarn-cache-{{ arch }} - v1-yarn-cache-{{ arch }}
- &save-yarn-cache - &save-yarn-cache
paths: paths:
- ~/.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" }}
- &configure-jet-detox-environment
name: Configure Jet + Detox Environment
command: |
brew install node@8
brew link node@8
brew tap wix/brew
brew install applesimutils
brew install watchman
touch .watchmanconfig
node -v
- &packager-jet
name: Start React Native Pacakager (background)
background: true
command: cd tests && yarn run packager-jet || true
# ------------------------- # -------------------------
# INSTALLATION # INSTALLATION
# ------------------------- # -------------------------
@ -111,26 +128,20 @@ jobs:
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/react-native-firebase at: ~/react-native-firebase
- run: xcrun simctl boot "iPhone 7 Plus" || true - run:
- run: cd tests && yarn run packager-jet || true name: Start iPhone 7 Plus simulator (background)
background: true
command: xcrun simctl boot "iPhone 7 Plus" || true
- run: - run:
name: Configure Environment Variables name: Configure Environment Variables
command: | command: |
echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
source $BASH_ENV source $BASH_ENV
- run: - run: *configure-jet-detox-environment
name: Install Node 8
command: |
brew install node@8
brew link node@8
brew tap wix/brew
brew install applesimutils
node -v
- run: *yarn - run: *yarn
# Download CocoaPods specs via HTTPS (faster than Git) - run: *packager-jet
# and install CocoaPods.
- run: - run:
name: Install CocoaPods name: Install CocoaPods + Pod Install
command: | command: |
cd tests/ios cd tests/ios
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf