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
 const release = _.includes(process.argv, 'release');
4
 const release = _.includes(process.argv, 'release');
5
 
5
 
6
 function runWithXcpretty(cmd) {
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
 function run() {
14
 function run() {
21
             -sdk iphonesimulator
21
             -sdk iphonesimulator
22
             -configuration ${conf}
22
             -configuration ${conf}
23
             -derivedDataPath ./DerivedData/playground
23
             -derivedDataPath ./DerivedData/playground
24
-            ONLY_ACTIVE_ARCH=YES`);
24
+            ONLY_ACTIVE_ARCH=YES && echo $?`);
25
   runWithXcpretty(`RCT_NO_LAUNCH_PACKAGER=true
25
   runWithXcpretty(`RCT_NO_LAUNCH_PACKAGER=true
26
           cd ./playground/ios && xcodebuild
26
           cd ./playground/ios && xcodebuild
27
             test-without-building
27
             test-without-building
31
             -configuration ${conf}
31
             -configuration ${conf}
32
             -destination 'platform=iOS Simulator,name=iPhone 7'
32
             -destination 'platform=iOS Simulator,name=iPhone 7'
33
             -derivedDataPath ./DerivedData/playground
33
             -derivedDataPath ./DerivedData/playground
34
-            ONLY_ACTIVE_ARCH=YES`);
34
+            ONLY_ACTIVE_ARCH=YES && echo $?`);
35
 }
35
 }
36
 
36
 
37
 run();
37
 run();