|
@@ -6,7 +6,7 @@ const release = _.includes(process.argv, 'release');
|
6
|
6
|
function run() {
|
7
|
7
|
const conf = release ? `Release` : `Debug`;
|
8
|
8
|
|
9
|
|
- exec.execSync(`cd ./playground/ios &&
|
|
9
|
+ execWithXcprettyIfPossible(`cd ./playground/ios &&
|
10
|
10
|
RCT_NO_LAUNCH_PACKAGER=true
|
11
|
11
|
xcodebuild build build-for-testing
|
12
|
12
|
-scheme "ReactNativeNavigation"
|
|
@@ -16,7 +16,7 @@ function run() {
|
16
|
16
|
-derivedDataPath ./DerivedData/playground
|
17
|
17
|
ONLY_ACTIVE_ARCH=YES`);
|
18
|
18
|
|
19
|
|
- exec.execSync(`cd ./playground/ios &&
|
|
19
|
+ execWithXcprettyIfPossible(`cd ./playground/ios &&
|
20
|
20
|
RCT_NO_LAUNCH_PACKAGER=true
|
21
|
21
|
xcodebuild test-without-building
|
22
|
22
|
-scheme "ReactNativeNavigation"
|
|
@@ -28,4 +28,12 @@ function run() {
|
28
|
28
|
ONLY_ACTIVE_ARCH=YES`);
|
29
|
29
|
}
|
30
|
30
|
|
|
31
|
+function execWithXcprettyIfPossible(cmd) {
|
|
32
|
+ if (exec.which('xcpretty')) {
|
|
33
|
+ exec.execSync(`${cmd} | xcpretty`);
|
|
34
|
+ } else {
|
|
35
|
+ exec.execSync(cmd);
|
|
36
|
+ }
|
|
37
|
+}
|
|
38
|
+
|
31
|
39
|
run();
|