Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (54 sloc) 1.4 KB
version: 2
jobs:
ios:
# Specify the Xcode version to use
macos:
xcode: "9.0"
steps:
- checkout
- run:
name: Install React Native dependencies
command: |
brew update
brew upgrade python
brew install watchman || exit 0
- run:
name: Install Node dependencies
command: |
npm i
npm i react@16.8.3
- run:
name: Run unit tests
command: npm test
- run:
name: Link local copy of cavy
command: npm link
- run:
name: Install command line interfaces
command: npm install -g cavy-cli react-native-cli
- run:
name: Install sample app dependencies
command: |
mv sample-app ~/
cd ~/sample-app/CavyDirectory
npm i
npm link cavy
- run:
name: Link React versions together
command:
npm link ../sample-app/CavyDirectory/node_modules/react
- run:
name: Build app and run tests
command: |
cd ~/sample-app/CavyDirectory
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-*
rm -rf $TMPDIR/metro-*
watchman watch-del-all
react-native start --reset-cache &
cavy run-ios
workflows:
version: 2
ios:
jobs:
- ios
You can’t perform that action at this time.