Skip to content

Commit c30138b

Browse files
committed
CircleCI: Limit max Jest and Flow workers to avoid memory errors
1 parent 25f671f commit c30138b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.flowconfig

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|we
9494
; mock/ignore style files
9595
module.name_mapper='.*\(.scss\)' -> 'empty/object'
9696

97+
server.max_workers=4
98+
9799
suppress_type=$FlowIssue
98100
suppress_type=$FlowFixMe
99101
suppress_type=$FlowFixMeProps

bin/ci-checks-js.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ if [[ -z "${CHECK_CORRECTNESS}" ]] && [[ -z "${CHECK_TESTS}" ]] ; then
1414
fi
1515

1616
if [ "$CHECK_CORRECTNESS" = true ] ; then
17-
npm run flow || pFail
18-
npm run lint || pFail
17+
yarn run flow || pFail
18+
yarn run lint || pFail
1919
fi
2020

2121
if [ "$GUTENBERG_AS_PARENT" = true ] ; then
@@ -27,9 +27,9 @@ fi
2727
if [ "$CHECK_TESTS" = true ] ; then
2828
# we'll run the tests twich (once for each platform) if the platform env var is not set
2929
if [[ -z "${TEST_RN_PLATFORM}" ]] ; then
30-
TEST_RN_PLATFORM=android npm run ${TEST_SCRIPT_NAME} || pFail
31-
TEST_RN_PLATFORM=ios npm run ${TEST_SCRIPT_NAME} || pFail
30+
TEST_RN_PLATFORM=android yarn run ${TEST_SCRIPT_NAME} --maxWorkers=4 || pFail
31+
TEST_RN_PLATFORM=ios yarn run ${TEST_SCRIPT_NAME} --maxWorkers=4 || pFail
3232
else
33-
npm run ${TEST_SCRIPT_NAME} || pFail
33+
yarn run ${TEST_SCRIPT_NAME} --maxWorkers=4 || pFail
3434
fi
3535
fi

0 commit comments

Comments
 (0)