Daniel Zlotin 7 years ago
parent
commit
141df26512
2 changed files with 9 additions and 2 deletions
  1. 1
    0
      .travis.yml
  2. 8
    2
      playground/scripts/e2e.ios.js

+ 1
- 0
.travis.yml View File

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

+ 8
- 2
playground/scripts/e2e.ios.js View File

16
 
16
 
17
   shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb ${release ? '' : 'debug'}`);
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
           cd ios && xcodebuild
20
           cd ios && xcodebuild
21
             -scheme ${scheme} build
21
             -scheme ${scheme} build
22
             -project playground.xcodeproj
22
             -project playground.xcodeproj
23
             -sdk iphonesimulator
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
 function e2e() {
33
 function e2e() {