Browse Source

another build

Daniel Zlotin 7 years ago
parent
commit
2fc7f0aee5
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      playground/scripts/unit.ios.js

+ 8
- 7
playground/scripts/unit.ios.js View File

10
   }
10
   }
11
 }
11
 }
12
 
12
 
13
+function hasXcpretty() {
14
+  try {
15
+    return shellUtils.exec.execSyncRead(`which xcpretty`);
16
+  } catch (e) {
17
+    return false;
18
+  }
19
+}
20
+
13
 function testProject() {
21
 function testProject() {
14
   shellUtils.exec.execSync(`echo 'travis_fold:start:xcodeunit'`);
22
   shellUtils.exec.execSync(`echo 'travis_fold:start:xcodeunit'`);
15
   runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
23
   runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
27
             -destination 'platform=iOS Simulator,name=iPhone 7'`);
35
             -destination 'platform=iOS Simulator,name=iPhone 7'`);
28
   shellUtils.exec.execSync(`echo 'travis_fold:end:xcodeunit'`);
36
   shellUtils.exec.execSync(`echo 'travis_fold:end:xcodeunit'`);
29
 }
37
 }
30
-function hasXcpretty() {
31
-  try {
32
-    return shellUtils.exec.execSyncRead(`which xcpretty`);
33
-  } catch (e) {
34
-    return false;
35
-  }
36
-}
37
 
38
 
38
 function run() {
39
 function run() {
39
   testProject();
40
   testProject();