Don't merge before Circle CI tests pass: Re-enable Android e2e test
Summary: Disabled earlier today, a fix for HMR landed so let's test it works. Closes https://github.com/facebook/react-native/pull/12943 Differential Revision: D4712940 Pulled By: jeanlauliac fbshipit-source-id: 38cbfb04a0a16a0a59e8eb4c9c26adb60ab5d635
This commit is contained in:
parent
24183a363c
commit
6a9c2445ed
|
@ -76,9 +76,7 @@ test:
|
||||||
- node ./scripts/run-android-ci-instrumentation-tests.js --retries 3 --path ./ReactAndroid/src/androidTest/java/com/facebook/react/tests --package com.facebook.react.tests
|
- node ./scripts/run-android-ci-instrumentation-tests.js --retries 3 --path ./ReactAndroid/src/androidTest/java/com/facebook/react/tests --package com.facebook.react.tests
|
||||||
|
|
||||||
# Android e2e test
|
# Android e2e test
|
||||||
# Temp disabled to debug an ongoing issue (so far we think it's packager related).
|
- source scripts/circle-ci-android-setup.sh && retry3 node ./scripts/run-ci-e2e-tests.js --android --js --retries 2
|
||||||
# Re-enable this ASAP once the issue is fixed.
|
|
||||||
#- source scripts/circle-ci-android-setup.sh && retry3 node ./scripts/run-ci-e2e-tests.js --android --js --retries 2
|
|
||||||
|
|
||||||
# testing docs generation
|
# testing docs generation
|
||||||
- cd website && npm test
|
- cd website && npm test
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
/**
|
/**
|
||||||
* This script tests that React Native end to end installation/bootstrap works for different platforms
|
* This script tests that React Native end to end installation/bootstrap works for different platforms
|
||||||
* Available arguments:
|
* Available arguments:
|
||||||
* --ios - to test only ios application end to end
|
* --ios - 'react-native init' and check iOS app doesn't redbox
|
||||||
* --tvos - to test only tvOS application end to end
|
* --tvos - 'react-native init' and check tvOS app doesn't redbox
|
||||||
* --android - to test only android application end to end
|
* --android - 'react-native init' and check Android app doesn't redbox
|
||||||
* --js - to test that JS in the application is compilable
|
* --js - 'react-native init' and only check the packager returns a bundle
|
||||||
* --skip-cli-install - to skip react-native-cli global installation (for local debugging)
|
* --skip-cli-install - to skip react-native-cli global installation (for local debugging)
|
||||||
* --retries [num] - how many times to retry possible flaky commands: npm install and running tests, default 1
|
* --retries [num] - how many times to retry possible flaky commands: npm install and running tests, default 1
|
||||||
*/
|
*/
|
||||||
|
@ -113,16 +113,18 @@ try {
|
||||||
cd('..');
|
cd('..');
|
||||||
exec('keytool -genkey -v -keystore android/keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"');
|
exec('keytool -genkey -v -keystore android/keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"');
|
||||||
|
|
||||||
echo(`Starting packager server, ${SERVER_PID}`);
|
echo(`Starting appium server, ${APPIUM_PID}`);
|
||||||
const appiumProcess = spawn('node', ['./node_modules/.bin/appium']);
|
const appiumProcess = spawn('node', ['./node_modules/.bin/appium']);
|
||||||
APPIUM_PID = appiumProcess.pid;
|
APPIUM_PID = appiumProcess.pid;
|
||||||
echo(`Starting appium server, ${APPIUM_PID}`);
|
|
||||||
echo('Building app');
|
echo('Building the app');
|
||||||
if (exec('buck build android/app').code) {
|
if (exec('buck build android/app').code) {
|
||||||
echo('could not execute Buck build, is it installed and in PATH?');
|
echo('could not execute Buck build, is it installed and in PATH?');
|
||||||
exitCode = 1;
|
exitCode = 1;
|
||||||
throw Error(exitCode);
|
throw Error(exitCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo(`Starting packager server, ${SERVER_PID}`);
|
||||||
const packagerEnv = Object.create(process.env);
|
const packagerEnv = Object.create(process.env);
|
||||||
packagerEnv.REACT_NATIVE_MAX_WORKERS = 1;
|
packagerEnv.REACT_NATIVE_MAX_WORKERS = 1;
|
||||||
// shelljs exec('', {async: true}) does not emit stdout events, so we rely on good old spawn
|
// shelljs exec('', {async: true}) does not emit stdout events, so we rely on good old spawn
|
||||||
|
|
Loading…
Reference in New Issue