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:
Konstantin Raev 2016-06-24 16:54:52 -07:00 committed by Facebook Github Bot 4
parent 37e41d2549
commit c58a7aa546
3 changed files with 4 additions and 5 deletions

View File

@ -77,7 +77,7 @@ test:
- ./gradlew :ReactAndroid:assembleDebugAndroidTest -Pjobs=1 -Pcom.android.build.threadPoolSize=1
# 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
- cd website && node ./server/generate.js

View File

@ -38,4 +38,3 @@ function retry3 {
}
done
}

View File

@ -78,7 +78,7 @@ try {
exec('sleep 10s');
return exec(`react-native init EndToEndTest --version ${PACKAGE}`).code;
},
numberOfRetries,
numberOfRetries,
() => rm('-rf', 'EndToEndTest'))) {
echo('Failed to execute react-native init');
echo('Most common reason is npm registry connectivity, try again');
@ -131,7 +131,7 @@ try {
});
SERVER_PID = packagerProcess.pid;
// wait a bit to allow packager to startup
exec('sleep 5s');
exec('sleep 15s');
echo('Executing android e2e test');
if (tryExecNTimes(
() => {
@ -202,7 +202,7 @@ try {
}
}
exitCode = 0;
} finally {
cd(ROOT);
rm(MARKER_IOS);