Improved android e2e tests stability
Summary: Some tweaks to make CircleCI pass Closes https://github.com/facebook/react-native/pull/8425 Differential Revision: D3485087 Pulled By: bestander fbshipit-source-id: b1941ecedbcaf81f0bcb34a10686f21f2ded3114
This commit is contained in:
parent
37e41d2549
commit
c58a7aa546
|
@ -77,7 +77,7 @@ test:
|
||||||
- ./gradlew :ReactAndroid:assembleDebugAndroidTest -Pjobs=1 -Pcom.android.build.threadPoolSize=1
|
- ./gradlew :ReactAndroid:assembleDebugAndroidTest -Pjobs=1 -Pcom.android.build.threadPoolSize=1
|
||||||
|
|
||||||
# Android e2e test
|
# Android e2e test
|
||||||
- node ./scripts/run-ci-e2e-tests.js --android --js --retries 3
|
- source scripts/circle-ci-android-setup.sh && retry3 node ./scripts/run-ci-e2e-tests.js --android --js --retries 2
|
||||||
|
|
||||||
# testing docs generation is not broken
|
# testing docs generation is not broken
|
||||||
- cd website && node ./server/generate.js
|
- cd website && node ./server/generate.js
|
||||||
|
|
|
@ -38,4 +38,3 @@ function retry3 {
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ try {
|
||||||
exec('sleep 10s');
|
exec('sleep 10s');
|
||||||
return exec(`react-native init EndToEndTest --version ${PACKAGE}`).code;
|
return exec(`react-native init EndToEndTest --version ${PACKAGE}`).code;
|
||||||
},
|
},
|
||||||
numberOfRetries,
|
numberOfRetries,
|
||||||
() => rm('-rf', 'EndToEndTest'))) {
|
() => rm('-rf', 'EndToEndTest'))) {
|
||||||
echo('Failed to execute react-native init');
|
echo('Failed to execute react-native init');
|
||||||
echo('Most common reason is npm registry connectivity, try again');
|
echo('Most common reason is npm registry connectivity, try again');
|
||||||
|
@ -131,7 +131,7 @@ try {
|
||||||
});
|
});
|
||||||
SERVER_PID = packagerProcess.pid;
|
SERVER_PID = packagerProcess.pid;
|
||||||
// wait a bit to allow packager to startup
|
// wait a bit to allow packager to startup
|
||||||
exec('sleep 5s');
|
exec('sleep 15s');
|
||||||
echo('Executing android e2e test');
|
echo('Executing android e2e test');
|
||||||
if (tryExecNTimes(
|
if (tryExecNTimes(
|
||||||
() => {
|
() => {
|
||||||
|
@ -202,7 +202,7 @@ try {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exitCode = 0;
|
exitCode = 0;
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
cd(ROOT);
|
cd(ROOT);
|
||||||
rm(MARKER_IOS);
|
rm(MARKER_IOS);
|
||||||
|
|
Loading…
Reference in New Issue