Browse Source

try fix travis

Daniel Zlotin 7 years ago
parent
commit
87e381aa0e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      scripts/test.e2e.ios.js

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

10
     const conf = release ? `release` : `debug`;
10
     const conf = release ? `release` : `debug`;
11
     exec.execSync(`detox build --configuration ios.sim.${conf}`);
11
     exec.execSync(`detox build --configuration ios.sim.${conf}`);
12
 
12
 
13
-    exec.execAsync(`sleep 10`).then(() => {
13
+    setTimeout(() => {
14
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
14
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
15
-    });
15
+    }, 1000);
16
 
16
 
17
     startRecording();
17
     startRecording();
18
 
18
 
32
   exec.execSync(`killall ffmpeg || true`);
32
   exec.execSync(`killall ffmpeg || true`);
33
 
33
 
34
   exec.execSync(`ls -l out.avi`);
34
   exec.execSync(`ls -l out.avi`);
35
-  exec.execAsync(`sleep 10`).then(() => {
35
+  setTimeout(() => {
36
     exec.execSync(`ls -l out.avi`);
36
     exec.execSync(`ls -l out.avi`);
37
     const json = require('./../package.json');
37
     const json = require('./../package.json');
38
     json.name = 'fix-travis-rnn';
38
     json.name = 'fix-travis-rnn';
39
     json.version = `0.0.${Date.now()}`;
39
     json.version = `0.0.${Date.now()}`;
40
     require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
40
     require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
41
     exec.execSync(`npm run release`);
41
     exec.execSync(`npm run release`);
42
-  });
42
+  }, 300000);
43
 }
43
 }