Skip to content

Commit

Permalink
Returned flow checks to CI
Browse files Browse the repository at this point in the history
Summary: Closes facebook/react-native#7894

Differential Revision: D3379513

fbshipit-source-id: 49290b3582ae66ea99d19ec3f490bdb4436536dd
  • Loading branch information
bestander authored and Facebook Github Bot 8 committed Jun 2, 2016
1 parent 75c6bf5 commit 9172597
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ test:
- source scripts/circle-ci-android-setup.sh && waitForAVD

override:
# TODO flow is disabled see t11343811 and 0.25.1
# eslint bot
# - cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; npm run flow --silent -- check --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" CI_USER=$CIRCLE_PROJECT_USERNAME CI_REPO=$CIRCLE_PROJECT_REPONAME PULL_REQUEST_NUMBER=$CIRCLE_PR_NUMBER node bots/code-analysis-bot.js
- cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; npm run flow --silent -- check --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" CI_USER=$CIRCLE_PROJECT_USERNAME CI_REPO=$CIRCLE_PROJECT_REPONAME PULL_REQUEST_NUMBER=$CIRCLE_PR_NUMBER node bots/code-analysis-bot.js
# JS tests for dependencies installed with npm3
# - npm run flow check
- npm run flow -- check
- npm test -- --maxWorkers=1

# build app
Expand Down
11 changes: 5 additions & 6 deletions scripts/run-ci-e2e-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,11 @@ try {
exitCode = 1;
throw Error(exitCode);
}
// TODO disabled while flow 0.25.0 is crashing
// if (exec(`${ROOT}/node_modules/.bin/flow check`).code) {
// echo('Flow check does not pass');
// exitCode = 1;
// throw Error(exitCode);
// }
if (exec(`${ROOT}/node_modules/.bin/flow check`).code) {
echo('Flow check does not pass');
exitCode = 1;
throw Error(exitCode);
}
}
exitCode = 0;

Expand Down

0 comments on commit 9172597

Please sign in to comment.