|
@@ -10,6 +10,14 @@ function runWithXcprettyIfPossible(cmd) {
|
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
|
21
|
function testProject() {
|
14
|
22
|
shellUtils.exec.execSync(`echo 'travis_fold:start:xcodeunit'`);
|
15
|
23
|
runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
|
|
@@ -27,13 +35,6 @@ function testProject() {
|
27
|
35
|
-destination 'platform=iOS Simulator,name=iPhone 7'`);
|
28
|
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
|
39
|
function run() {
|
39
|
40
|
testProject();
|