Browse Source

try fix travis

Daniel Zlotin 7 years ago
parent
commit
44a8ba2093
2 changed files with 3 additions and 5 deletions
  1. 1
    1
      scripts/test-js.js
  2. 2
    4
      scripts/test.e2e.ios.js

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

14
 run();
14
 run();
15
 
15
 
16
 function run() {
16
 function run() {
17
-  const paths = _.chain(dirs).map((d) => `${d}/**/**/**/**/**/**/*`).join(' ').value();
17
+  const paths = _.chain(dirs).map((d) => `'${d}/**'`).join(' ').value();
18
   exec.execSync(`xo ${paths} ${fix}`);
18
   exec.execSync(`xo ${paths} ${fix}`);
19
   exec.execSync(`jest --coverage`);
19
   exec.execSync(`jest --coverage`);
20
 }
20
 }

+ 2
- 4
scripts/test.e2e.ios.js View File

12
 
12
 
13
     startRecording();
13
     startRecording();
14
 
14
 
15
-    setTimeout(() => {
16
-      exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
17
-    }, 1000);
15
+    exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
18
 
16
 
19
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
17
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
20
   } finally {
18
   } finally {
39
     json.version = `0.0.${Date.now()}`;
37
     json.version = `0.0.${Date.now()}`;
40
     require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
38
     require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
41
     exec.execSync(`npm run release`);
39
     exec.execSync(`npm run release`);
42
-  }, 300000);
40
+  }, 30000);
43
 }
41
 }