Browse Source

try reproduce travis bug

Daniel Zlotin 7 years ago
parent
commit
f721116eb5
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      scripts/test.unit.ios.js

+ 7
- 7
scripts/test.unit.ios.js View File

@@ -4,11 +4,11 @@ const exec = require('shell-utils').exec;
4 4
 const release = _.includes(process.argv, 'release');
5 5
 
6 6
 function runWithXcpretty(cmd) {
7
-  if (exec.which(`xcpretty`)) {
8
-    exec.execSync(`${cmd} | xcpretty && exit \${PIPESTATUS[0]}`);
9
-  } else {
10
-    exec.execSync(`${cmd}`);
11
-  }
7
+  // if (exec.which(`xcpretty`)) {
8
+  //   exec.execSync(`${cmd} | xcpretty && exit \${PIPESTATUS[0]}`);
9
+  // } else {
10
+  exec.execSync(`${cmd}`);
11
+  // }
12 12
 }
13 13
 
14 14
 function run() {
@@ -21,7 +21,7 @@ function run() {
21 21
             -sdk iphonesimulator
22 22
             -configuration ${conf}
23 23
             -derivedDataPath ./DerivedData/playground
24
-            ONLY_ACTIVE_ARCH=YES`);
24
+            ONLY_ACTIVE_ARCH=YES && echo $?`);
25 25
   runWithXcpretty(`RCT_NO_LAUNCH_PACKAGER=true
26 26
           cd ./playground/ios && xcodebuild
27 27
             test-without-building
@@ -31,7 +31,7 @@ function run() {
31 31
             -configuration ${conf}
32 32
             -destination 'platform=iOS Simulator,name=iPhone 7'
33 33
             -derivedDataPath ./DerivedData/playground
34
-            ONLY_ACTIVE_ARCH=YES`);
34
+            ONLY_ACTIVE_ARCH=YES && echo $?`);
35 35
 }
36 36
 
37 37
 run();