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