Enable coverage, set jest maxWorkers to 2 (#11983)

This commit is contained in:
Rick Hanlon II
2018-01-07 21:27:24 -05:00
committed by Dan Abramov
parent 08c86dd76b
commit 26185759e4
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
set -e
yarn test --coverage --runInBand
yarn test --coverage --maxWorkers=2
if [ -z $CI_PULL_REQUEST ]; then
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
fi

View File

@@ -28,9 +28,9 @@ if [ $((2 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
COMMANDS_TO_RUN+=('./scripts/circleci/upload_build.sh')
fi
# if [ $((3 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
# COMMANDS_TO_RUN+=('./scripts/circleci/test_coverage.sh')
# fi
if [ $((3 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
COMMANDS_TO_RUN+=('./scripts/circleci/test_coverage.sh')
fi
RETURN_CODES=()
FAILURE=0