Skip to content

Commit 4501996

Browse files
authored
Use 2 workers for all tests on CI (facebook#11990)
1 parent 982a828 commit 4501996

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/circleci/test_entry_point.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
1010
COMMANDS_TO_RUN+=('node ./scripts/prettier/index')
1111
COMMANDS_TO_RUN+=('node ./scripts/tasks/flow')
1212
COMMANDS_TO_RUN+=('node ./scripts/tasks/eslint')
13-
COMMANDS_TO_RUN+=('yarn test --runInBand')
13+
COMMANDS_TO_RUN+=('yarn test --maxWorkers=2')
1414
COMMANDS_TO_RUN+=('./scripts/circleci/check_license.sh')
1515
COMMANDS_TO_RUN+=('./scripts/circleci/check_modules.sh')
1616
COMMANDS_TO_RUN+=('./scripts/circleci/test_print_warnings.sh')
1717
COMMANDS_TO_RUN+=('./scripts/circleci/track_stats.sh')
1818
fi
1919

2020
if [ $((1 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
21-
COMMANDS_TO_RUN+=('yarn test-prod --runInBand')
21+
COMMANDS_TO_RUN+=('yarn test-prod --maxWorkers=2')
2222
fi
2323

2424
if [ $((2 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
2525
COMMANDS_TO_RUN+=('./scripts/circleci/build.sh')
26-
COMMANDS_TO_RUN+=('yarn test-build --runInBand')
27-
COMMANDS_TO_RUN+=('yarn test-build-prod --runInBand')
26+
COMMANDS_TO_RUN+=('yarn test-build --maxWorkers=2')
27+
COMMANDS_TO_RUN+=('yarn test-build-prod --maxWorkers=2')
2828
COMMANDS_TO_RUN+=('./scripts/circleci/upload_build.sh')
2929
fi
3030

0 commit comments

Comments
 (0)