Browse Source

try fix travis

Daniel Zlotin 7 years ago
parent
commit
33e0bb9a70
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/test.e2e.ios.js

+ 2
- 2
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
+    startRecording();
14
+
13
     setTimeout(() => {
15
     setTimeout(() => {
14
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
16
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
15
     }, 1000);
17
     }, 1000);
16
 
18
 
17
-    startRecording();
18
-
19
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
19
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
20
   } finally {
20
   } finally {
21
     stopRecording();
21
     stopRecording();