Browse Source

cleanup CI

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

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

@@ -26,19 +26,12 @@ function runDetoxUsingMocha() {
26 26
                               ./node_modules/mocha/bin/mocha e2e
27 27
                                 --timeout ${5 * 60 * 1000}
28 28
                                 --recursive
29
-                                --bail`);
29
+                                --bail
30
+                                ${process.env.CI ? '--cleanup' : ''}`);
30 31
 }
31 32
 
32
-function e2e() { //eslint-disable-line
33
-  try {
34
-    runDetoxUsingMocha();
35
-  } finally {
36
-    if (process.env.CI) {
37
-      exec.kill(`Simulator`);
38
-      exec.kill(`CoreSimulator`);
39
-      exec.execSync(`sleep 5`);
40
-    }
41
-  }
33
+function e2e() {
34
+  runDetoxUsingMocha();
42 35
 }
43 36
 
44 37
 function run() {