Skip to content

Commit cd031e5

Browse files
yungstersfacebook-github-bot
authored andcommitted
RNCI: Migrate OSS CI to Flow DotSlash Binary (#50743)
Summary: Pull Request resolved: #50743 Expose `--flowBinary` on React Native CI script. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D73062734 fbshipit-source-id: 6501b6ff2976e4e7e0bbc1c6025205cde4169679
1 parent a89f67f commit cd031e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/run-ci-javascript-tests.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const numberOfMaxWorkers = argv.maxWorkers || 1;
2424
let exitCode;
2525

2626
const JEST_BINARY = argv.jestBinary || './node_modules/.bin/jest';
27+
const FLOW_BINARY = argv.flowBinary;
2728
const YARN_BINARY = argv.yarnBinary || 'yarn';
2829

2930
function describe(message) {
@@ -55,7 +56,11 @@ try {
5556
}
5657

5758
describe('Test: Flow check');
58-
if (exec(`${YARN_BINARY} run flow-check`).code) {
59+
const flowCommand =
60+
FLOW_BINARY == null
61+
? `${YARN_BINARY} run flow-check`
62+
: `${FLOW_BINARY} check`;
63+
if (exec(flowCommand).code) {
5964
echo('Failed to run flow.');
6065
exitCode = 1;
6166
throw Error(exitCode);

0 commit comments

Comments
 (0)