|
@@ -9,7 +9,6 @@ run();
|
9
|
9
|
function run() {
|
10
|
10
|
if (process.env.CI) {
|
11
|
11
|
try {
|
12
|
|
- // console.log(`android e2e disabled on CI for now`);
|
13
|
12
|
launchEmulator();
|
14
|
13
|
runTests();
|
15
|
14
|
} finally {
|
|
@@ -21,15 +20,14 @@ function run() {
|
21
|
20
|
}
|
22
|
21
|
|
23
|
22
|
function runTests() {
|
24
|
|
- console.log('all OK');
|
25
|
|
- // exec.execSync(`yarn run uninstall-android`);
|
26
|
|
- // exec.execSync(`yarn run install-android ${release ? '-- release' : ''}`);
|
27
|
|
- // exec.execSync(`cd AndroidE2E && ./gradlew connectedDebugAndroidTest`);
|
|
23
|
+ exec.execSync(`yarn run uninstall-android`);
|
|
24
|
+ exec.execSync(`yarn run install-android ${release ? '-- release' : ''}`);
|
|
25
|
+ exec.execSync(`cd AndroidE2E && ./gradlew connectedDebugAndroidTest`);
|
28
|
26
|
}
|
29
|
27
|
|
30
|
28
|
function launchEmulator() {
|
31
|
29
|
console.log(`Launching Android Emulator`);
|
32
|
|
- exec.execSync(`cd $ANDROID_HOME/tools && ./emulator -skin 1080x1920 -gpu host -no-audio @pixel`);
|
|
30
|
+ exec.execSync(`cd $ANDROID_HOME/tools && ./emulator -skin 1080x1920 -no-audio @pixel`);
|
33
|
31
|
exec.execSync(`./scripts/waitForAndroidEmulator.sh`);
|
34
|
32
|
}
|
35
|
33
|
|