Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 27 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,29 +314,6 @@ aliases:
name: End-to-End Test Suite
command: node ./scripts/run-ci-e2e-tests.js --android --ios --tvos --js --retries 3;

- &install-node-8
name: Install Node 8
command: |
echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
brew install node@8
brew link node@8
node -v

- &install-apple-simulator-utils
name: Install Apple Simulator Utilities
command: |
brew tap wix/brew
brew install applesimutils

- &build-ios-app-e2e
name: Build iOS App for Simulator
command: yarn run build-ios-e2e

- &run-ios-detox-tests
name: Run Detox Tests
command: yarn run test-ios-e2e

- &run-objc-ios-e2e-tests
name: iOS End-to-End Test Suite
command: |
Expand Down Expand Up @@ -469,23 +446,34 @@ jobs:
path: ~/react-native/reports/junit

# Runs end to end tests (Detox)
# Disabled.
test_detox_end_to_end:
<<: *macos_defaults
steps:
- attach_workspace:
at: ~/react-native

- run: *boot-simulator-iphone

- run: *install-node-8
- run: *install-apple-simulator-utils
- run: *build-ios-app-e2e

- run: *run-ios-detox-tests

- store_test_results:
path: ~/react-native/reports/junit
- run: xcrun simctl boot "iPhone 5s" || 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
- run:
name: Build iOS app for simulator
command: |
yarn run build-ios-e2e
- run:
name: Run Detox Tests
command: |
yarn run test-ios-e2e

# Set up an Android environment for downstream jobs
test_android:
Expand Down Expand Up @@ -685,10 +673,10 @@ workflows:
# requires:
# - checkout_code

# - test_detox_end_to_end:
# filters: *filter-ignore-gh-pages
# requires:
# - checkout_code
- test_detox_end_to_end:
filters: *filter-ignore-gh-pages
requires:
- checkout_code


# Only runs on vX.X.X tags if all tests are green
Expand Down