diff --git a/.circleci/config.yml b/.circleci/config.yml index bdb73f0e7723fe..c4236d44d71eaf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -241,6 +241,10 @@ aliases: name: iOS Test Suite command: ./scripts/objc-test-ios.sh test + - &run-objc-ios-e2e-tests + name: iOS End-to-End Test Suite + command: node ./scripts/run-ci-e2e-tests.js --ios --retries 3; + - &display-broken-tests-warning name: Running broken tests (Ignore any failures past this point) command: | @@ -255,9 +259,6 @@ aliases: - &run-e2e-tests name: End-to-End Test Suite command: ./scripts/run-ci-e2e-tests.js --android --ios --js --retries 3; - - &run-objc-ios-e2e-tests - name: iOS End-to-End Test Suite - command: node ./scripts/run-ci-e2e-tests.js --ios --retries 3; - &run-android-e2e-tests name: Android End-to-End Test Suite command: node ./scripts/run-ci-e2e-tests.js --android --retries 3; @@ -367,6 +368,7 @@ jobs: - restore-cache: *restore-cache-homebrew - run: *brew-install-watchman - save-cache: *save-cache-homebrew + - run: *run-objc-ios-e2e-tests - run: *run-objc-ios-tests - store_test_results: diff --git a/scripts/run-ci-e2e-tests.js b/scripts/run-ci-e2e-tests.js index 556211ff51b4ac..ee50ad713d8172 100644 --- a/scripts/run-ci-e2e-tests.js +++ b/scripts/run-ci-e2e-tests.js @@ -47,15 +47,7 @@ let exitCode; try { // install CLI - cd('react-native-cli'); - exec('yarn pack'); - const CLI_PACKAGE = path.join( - ROOT, - 'react-native-cli', - 'react-native-cli-*.tgz', - ); - cd('..'); - + const CLI_PACKAGE = 'react-native-cli'; if (!argv['skip-cli-install']) { if (exec(`sudo yarn global add ${CLI_PACKAGE}`).code) { echo('Could not install react-native-cli globally.'); @@ -197,7 +189,7 @@ try { if ( tryExecNTimes(() => { exec('sleep 10s'); - let destination = 'platform=iOS Simulator,name=iPhone 5s,OS=11.4'; + let destination = 'platform=iOS Simulator,name=iPhone 5s,OS=12.1'; let sdk = 'iphonesimulator'; let scheme = 'EndToEndTest';