瀏覽代碼

fixing xcodebuild

Daniel Zlotin 8 年之前
父節點
當前提交
c27b50c7d1
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      playground/scripts/e2e.ios.js

+ 3
- 2
playground/scripts/e2e.ios.js 查看文件

19
   shellUtils.exec.execSync(`echo 'travis_fold:start:xcodebuild'`);
19
   shellUtils.exec.execSync(`echo 'travis_fold:start:xcodebuild'`);
20
   const cmd = `RCT_NO_LAUNCH_PACKAGER=true
20
   const cmd = `RCT_NO_LAUNCH_PACKAGER=true
21
           cd ios && xcodebuild
21
           cd ios && xcodebuild
22
-            -scheme ${scheme} build
22
+            -scheme ${scheme} 
23
+            ${release ? 'clean build' : 'build'} 
23
             -project playground.xcodeproj
24
             -project playground.xcodeproj
24
             -sdk iphonesimulator
25
             -sdk iphonesimulator
25
             -derivedDataPath ./DerivedData/playground`;
26
             -derivedDataPath ./DerivedData/playground`;
26
 
27
 
27
   if (hasXcpretty()) {
28
   if (hasXcpretty()) {
28
-    shellUtils.exec.execSync(`${cmd} | xcpretty`);
29
+    shellUtils.exec.execSync(`${cmd} | xcpretty && exit \${PIPESTATUS[0]}`);
29
   } else {
30
   } else {
30
     shellUtils.exec.execSync(`${cmd}`);
31
     shellUtils.exec.execSync(`${cmd}`);
31
   }
32
   }