Explorar el Código

update script

Daniel Zlotin hace 8 años
padre
commit
9fe0ea81de
Se han modificado 1 ficheros con 12 adiciones y 11 borrados
  1. 12
    11
      playground/scripts/e2e.ios.js

+ 12
- 11
playground/scripts/e2e.ios.js Ver fichero

@@ -15,12 +15,12 @@ function buildProjForDetox() {
15 15
   const scheme = release ? `playground_release_Detox` : `playground_Detox`;
16 16
   const args = release ? '' : `GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 RCT_DEBUG=1 RCT_DEV=1 RCT_NSASSERT=1"`;
17 17
 
18
-  shellUtils.exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true \
19
-          cd ios && xcodebuild \
20
-            -scheme ${scheme} build \
21
-            -project playground.xcodeproj \
22
-            -sdk iphonesimulator \
23
-            -derivedDataPath ./DerivedData/playground \
18
+  shellUtils.exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
19
+          cd ios && xcodebuild
20
+            -scheme ${scheme} build
21
+            -project playground.xcodeproj
22
+            -sdk iphonesimulator
23
+            -derivedDataPath ./DerivedData/playground
24 24
             ${args}`);
25 25
 }
26 26
 
@@ -29,12 +29,13 @@ function e2e() {
29 29
     shellUtils.exec.kill(`detox-server`);
30 30
     shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
31 31
     const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
32
+
32 33
     shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}" 
33
-    BABEL_ENV=test 
34
-    ./node_modules/mocha/bin/mocha e2e 
35
-    --timeout 120000 
36
-    --recursive 
37
-    --compilers js:babel-register`);
34
+                              BABEL_ENV=test
35
+                              ./node_modules/mocha/bin/mocha e2e 
36
+                                --timeout 120000 
37
+                                --recursive
38
+                                --compilers js:babel-register`);
38 39
   } finally {
39 40
     shellUtils.exec.kill(`detox-server`);
40 41
     if (release) {