Browse Source

try fix travis

Daniel Zlotin 6 years ago
parent
commit
de438d5e1e
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      scripts/test.e2e.ios.js

+ 9
- 5
scripts/test.e2e.ios.js View File

@@ -30,10 +30,14 @@ function startRecording() {
30 30
 function stopRecording() {
31 31
   exec.execSync(`ps -ef | grep ffmpeg`);
32 32
   exec.execSync(`killall ffmpeg || true`);
33
+
33 34
   exec.execSync(`ls -l out.avi`);
34
-  const json = require('./../package.json');
35
-  json.name = 'fix-travis-rnn';
36
-  json.version = `0.0.${Date.now()}`;
37
-  require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
38
-  exec.execSync(`npm run release`);
35
+  exec.execAsync(`sleep 10`).then(() => {
36
+    exec.execSync(`ls -l out.avi`);
37
+    const json = require('./../package.json');
38
+    json.name = 'fix-travis-rnn';
39
+    json.version = `0.0.${Date.now()}`;
40
+    require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
41
+    exec.execSync(`npm run release`);
42
+  });
39 43
 }