Browse Source

Download licenses only in ci

Guy Carmeli 6 years ago
parent
commit
f34514a04a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/test-e2e.js

+ 1
- 1
scripts/test-e2e.js View File

@@ -18,7 +18,7 @@ function run() {
18 18
     const headless$ = android ? headless ? `--headless` : `` : ``;
19 19
     const workers = multi ? 3 : 1;
20 20
     
21
-    if (platform === 'android') {
21
+    if (platform === 'android' && process.env.CI) {
22 22
         const sdkmanager = '/usr/local/share/android-sdk/tools/bin/sdkmanager';
23 23
         exec.execSync(`echo y | ${sdkmanager} --update && echo y | ${sdkmanager} --licenses`);
24 24
     }