limited max workers in packager to 1 to stop crashes in Ci…
Summary: This should stop Circle CI from crashing. Let's wait for the test to pass. cc davidaurelio matryoshcow mkonicek Closes https://github.com/facebook/react-native/pull/10962 Differential Revision: D4186949 Pulled By: kentaromiura fbshipit-source-id: 2542376a6e4bf0d7dc423c574bd4573ae9bdfc96
This commit is contained in:
parent
26e373c903
commit
7e8bef872a
|
@ -67,7 +67,7 @@ test:
|
||||||
- ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1 -Pcom.android.build.threadPoolSize=1:
|
- ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1 -Pcom.android.build.threadPoolSize=1:
|
||||||
timeout: 360
|
timeout: 360
|
||||||
# build JS bundle for instrumentation tests
|
# build JS bundle for instrumentation tests
|
||||||
- node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
|
- REACT_NATIVE_MAX_WORKERS=1 node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
|
||||||
# build test APK
|
# build test APK
|
||||||
- buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests --config build.threads=1
|
- buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests --config build.threads=1
|
||||||
# run installed apk with tests
|
# run installed apk with tests
|
||||||
|
|
|
@ -185,12 +185,12 @@ try {
|
||||||
|
|
||||||
if (argv.js) {
|
if (argv.js) {
|
||||||
// Check the packager produces a bundle (doesn't throw an error)
|
// Check the packager produces a bundle (doesn't throw an error)
|
||||||
if (exec('react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output android-bundle.js').code) {
|
if (exec('REACT_NATIVE_MAX_WORKERS=1 react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output android-bundle.js').code) {
|
||||||
echo('Could not build android package');
|
echo('Could not build android package');
|
||||||
exitCode = 1;
|
exitCode = 1;
|
||||||
throw Error(exitCode);
|
throw Error(exitCode);
|
||||||
}
|
}
|
||||||
if (exec('react-native bundle --platform ios --dev true --entry-file index.ios.js --bundle-output ios-bundle.js').code) {
|
if (exec('REACT_NATIVE_MAX_WORKERS=1 react-native bundle --platform ios --dev true --entry-file index.ios.js --bundle-output ios-bundle.js').code) {
|
||||||
echo('Could not build ios package');
|
echo('Could not build ios package');
|
||||||
exitCode = 1;
|
exitCode = 1;
|
||||||
throw Error(exitCode);
|
throw Error(exitCode);
|
||||||
|
|
Loading…
Reference in New Issue