Quellcode durchsuchen

try run emulator on travis

Daniel Zlotin vor 7 Jahren
Ursprung
Commit
b3276f51ea
2 geänderte Dateien mit 10 neuen und 8 gelöschten Zeilen
  1. 5
    4
      .travis.yml
  2. 5
    4
      scripts/test.e2e.android.js

+ 5
- 4
.travis.yml Datei anzeigen

@@ -26,13 +26,14 @@ install:
26 26
   - yarn config set cache-folder $YARN_CACHE
27 27
         # android sdk:
28 28
   - source ./scripts/env/installAndroidSDK.sh
29
-        # fbsimctl:
29
+  - yarn test-e2e-android
30
+  #       # fbsimctl:
30 31
   # - source ./scripts/env/installFbSimCtl.sh
31 32
 
32 33
 script:
33
-  - set -e
34
-  - ./scripts/travis.sh
35
-  - set +e
34
+  # - set -e
35
+  # - ./scripts/travis.sh
36
+  # - set +e
36 37
 
37 38
 after_script:
38 39
   - echo "BUILD FINISHED"

+ 5
- 4
scripts/test.e2e.android.js Datei anzeigen

@@ -21,14 +21,15 @@ function run() {
21 21
 }
22 22
 
23 23
 function runTests() {
24
-  exec.execSync(`yarn run uninstall-android`);
25
-  exec.execSync(`yarn run install-android ${release ? '-- release' : ''}`);
26
-  exec.execSync(`cd AndroidE2E && ./gradlew connectedDebugAndroidTest`);
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`);
27 28
 }
28 29
 
29 30
 function launchEmulator() {
30 31
   console.log(`Launching Android Emulator`);
31
-  exec.exec(`cd $ANDROID_HOME/tools && ./emulator -skin 1080x1920 -gpu host -no-audio @pixel`);
32
+  exec.execSync(`cd $ANDROID_HOME/tools && ./emulator -skin 1080x1920 -gpu host -no-audio @pixel`);
32 33
   exec.execSync(`./scripts/waitForAndroidEmulator.sh`);
33 34
 }
34 35