Skip to content

Commit

Permalink
Run everything in band (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 22, 2017
1 parent 16d77e8 commit f60b2c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions scripts/circleci/test_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

set -e

yarn test --coverage
node ./scripts/tasks/jest --coverage --runInBand
if [ -z $CI_PULL_REQUEST ]; then
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
fi

# TODO: should we also track prod code coverage somehow?
# yarn test-prod --coverage
4 changes: 2 additions & 2 deletions scripts/circleci/test_entry_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ $((1 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
fi

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

if [ $((3 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
Expand All @@ -20,7 +20,7 @@ fi
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+=('yarn test')
COMMANDS_TO_RUN+=('yarn test --runInBand')
COMMANDS_TO_RUN+=('./scripts/circleci/build.sh')
COMMANDS_TO_RUN+=('./scripts/circleci/check_license.sh')
COMMANDS_TO_RUN+=('./scripts/circleci/check_modules.sh')
Expand Down

0 comments on commit f60b2c2

Please sign in to comment.