From 45019963980e5175a20ba555108beabeefd52976 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 10 Jan 2018 23:54:23 +0000 Subject: [PATCH] Use 2 workers for all tests on CI (#11990) --- scripts/circleci/test_entry_point.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/circleci/test_entry_point.sh b/scripts/circleci/test_entry_point.sh index 352ac7358d..d7f7a1b28a 100755 --- a/scripts/circleci/test_entry_point.sh +++ b/scripts/circleci/test_entry_point.sh @@ -10,7 +10,7 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then COMMANDS_TO_RUN+=('node ./scripts/prettier/index') COMMANDS_TO_RUN+=('node ./scripts/tasks/flow') COMMANDS_TO_RUN+=('node ./scripts/tasks/eslint') - COMMANDS_TO_RUN+=('yarn test --runInBand') + COMMANDS_TO_RUN+=('yarn test --maxWorkers=2') COMMANDS_TO_RUN+=('./scripts/circleci/check_license.sh') COMMANDS_TO_RUN+=('./scripts/circleci/check_modules.sh') COMMANDS_TO_RUN+=('./scripts/circleci/test_print_warnings.sh') @@ -18,13 +18,13 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then fi if [ $((1 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then - COMMANDS_TO_RUN+=('yarn test-prod --runInBand') + COMMANDS_TO_RUN+=('yarn test-prod --maxWorkers=2') fi if [ $((2 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then COMMANDS_TO_RUN+=('./scripts/circleci/build.sh') - COMMANDS_TO_RUN+=('yarn test-build --runInBand') - COMMANDS_TO_RUN+=('yarn test-build-prod --runInBand') + COMMANDS_TO_RUN+=('yarn test-build --maxWorkers=2') + COMMANDS_TO_RUN+=('yarn test-build-prod --maxWorkers=2') COMMANDS_TO_RUN+=('./scripts/circleci/upload_build.sh') fi