From 8dc5beb1cf60173ba7facc2f53ea664baeeb9061 Mon Sep 17 00:00:00 2001 From: Hector Ramos Date: Mon, 20 Aug 2018 15:52:52 -0700 Subject: [PATCH] Re-enable Detox e2e --- .circleci/config.yml | 52 +++++++++++--------------------------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 26a713b185cabf..5839745fa978d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: | @@ -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: @@ -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