Daniel Zlotin hace 8 años
padre
commit
141df26512
Se han modificado 2 ficheros con 9 adiciones y 2 borrados
  1. 1
    0
      .travis.yml
  2. 8
    2
      playground/scripts/e2e.ios.js

+ 1
- 0
.travis.yml Ver fichero

@@ -26,6 +26,7 @@ before_cache:
26 26
 
27 27
 install:
28 28
   - nvm install $NODE_VERSION
29
+  - gem install xcpretty
29 30
   - curl -o- -L https://yarnpkg.com/install.sh | bash
30 31
   - yarn config set cache-folder $YARN_CACHE
31 32
 

+ 8
- 2
playground/scripts/e2e.ios.js Ver fichero

@@ -16,12 +16,18 @@ function buildProjForDetox() {
16 16
 
17 17
   shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb ${release ? '' : 'debug'}`);
18 18
 
19
-  shellUtils.exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
19
+  const cmd = `RCT_NO_LAUNCH_PACKAGER=true
20 20
           cd ios && xcodebuild
21 21
             -scheme ${scheme} build
22 22
             -project playground.xcodeproj
23 23
             -sdk iphonesimulator
24
-            -derivedDataPath ./DerivedData/playground`);
24
+            -derivedDataPath ./DerivedData/playground`;
25
+
26
+  if (shellUtils.exec.execSyncRead(`which xcpretty`)) {
27
+    shellUtils.exec.execSync(`${cmd} | xcpretty && exit ${PIPESTATUS[0]}`);
28
+  } else {
29
+    shellUtils.exec.execSync(`${cmd}`);
30
+  }
25 31
 }
26 32
 
27 33
 function e2e() {