Skip to content

Commit 8dc5beb

Browse files
committed
Re-enable Detox e2e
1 parent 1658a4c commit 8dc5beb

File tree

1 file changed

+13
-39
lines changed

1 file changed

+13
-39
lines changed

.circleci/config.yml

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -314,29 +314,6 @@ aliases:
314314
name: End-to-End Test Suite
315315
command: node ./scripts/run-ci-e2e-tests.js --android --ios --tvos --js --retries 3;
316316

317-
- &install-node-8
318-
name: Install Node 8
319-
command: |
320-
echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
321-
source $BASH_ENV
322-
brew install node@8
323-
brew link node@8
324-
node -v
325-
326-
- &install-apple-simulator-utils
327-
name: Install Apple Simulator Utilities
328-
command: |
329-
brew tap wix/brew
330-
brew install applesimutils
331-
332-
- &build-ios-app-e2e
333-
name: Build iOS App for Simulator
334-
command: yarn run build-ios-e2e
335-
336-
- &run-ios-detox-tests
337-
name: Run Detox Tests
338-
command: yarn run test-ios-e2e
339-
340317
- &run-objc-ios-e2e-tests
341318
name: iOS End-to-End Test Suite
342319
command: |
@@ -469,23 +446,22 @@ jobs:
469446
path: ~/react-native/reports/junit
470447

471448
# Runs end to end tests (Detox)
472-
# Disabled.
473449
test_detox_end_to_end:
474450
<<: *macos_defaults
475451
steps:
476-
- attach_workspace:
477-
at: ~/react-native
478-
479-
- run: *boot-simulator-iphone
480-
481-
- run: *install-node-8
482-
- run: *install-apple-simulator-utils
483-
- run: *build-ios-app-e2e
452+
- checkout
484453

485-
- run: *run-ios-detox-tests
454+
- run: echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
455+
- run: source $BASH_ENV
456+
- run: brew install node@8
457+
- run: brew link node@8
458+
- run: node -v
486459

487-
- store_test_results:
488-
path: ~/react-native/reports/junit
460+
- run: brew tap wix/brew
461+
- run: brew install applesimutils
462+
- run: yarn
463+
- run: yarn run build-ios-e2e
464+
- run: yarn run test-ios-e2e
489465

490466
# Set up an Android environment for downstream jobs
491467
test_android:
@@ -685,10 +661,8 @@ workflows:
685661
# requires:
686662
# - checkout_code
687663

688-
# - test_detox_end_to_end:
689-
# filters: *filter-ignore-gh-pages
690-
# requires:
691-
# - checkout_code
664+
- test_detox_end_to_end:
665+
filters: *filter-ignore-gh-pages
692666

693667

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

0 commit comments

Comments
 (0)