Browse Source

try run emulator on travis

Daniel Zlotin 7 years ago
parent
commit
b3276f51ea
2 changed files with 10 additions and 8 deletions
  1. 5
    4
      .travis.yml
  2. 5
    4
      scripts/test.e2e.android.js

+ 5
- 4
.travis.yml View File

26
   - yarn config set cache-folder $YARN_CACHE
26
   - yarn config set cache-folder $YARN_CACHE
27
         # android sdk:
27
         # android sdk:
28
   - source ./scripts/env/installAndroidSDK.sh
28
   - source ./scripts/env/installAndroidSDK.sh
29
-        # fbsimctl:
29
+  - yarn test-e2e-android
30
+  #       # fbsimctl:
30
   # - source ./scripts/env/installFbSimCtl.sh
31
   # - source ./scripts/env/installFbSimCtl.sh
31
 
32
 
32
 script:
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
 after_script:
38
 after_script:
38
   - echo "BUILD FINISHED"
39
   - echo "BUILD FINISHED"

+ 5
- 4
scripts/test.e2e.android.js View File

21
 }
21
 }
22
 
22
 
23
 function runTests() {
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
 function launchEmulator() {
30
 function launchEmulator() {
30
   console.log(`Launching Android Emulator`);
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
   exec.execSync(`./scripts/waitForAndroidEmulator.sh`);
33
   exec.execSync(`./scripts/waitForAndroidEmulator.sh`);
33
 }
34
 }
34
 
35