Skip to content

Commit

Permalink
Re-enable Detox e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hramos committed Aug 21, 2018
1 parent 1658a4c commit 8dc5beb
Showing 1 changed file with 13 additions and 39 deletions.
52 changes: 13 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,22 @@ 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
- checkout

- run: *run-ios-detox-tests
- run: echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
- run: source $BASH_ENV
- run: brew install node@8
- run: brew link node@8
- run: node -v

- store_test_results:
path: ~/react-native/reports/junit
- run: brew tap wix/brew
- run: brew install applesimutils
- run: yarn
- run: yarn run build-ios-e2e
- run: yarn run test-ios-e2e

# Set up an Android environment for downstream jobs
test_android:
Expand Down Expand Up @@ -685,10 +661,8 @@ 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


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

0 comments on commit 8dc5beb

Please sign in to comment.