|
|
|
|
15
|
const scheme = release ? `playground_release_Detox` : `playground_Detox`;
|
15
|
const scheme = release ? `playground_release_Detox` : `playground_Detox`;
|
16
|
const args = release ? '' : `GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 RCT_DEBUG=1 RCT_DEV=1 RCT_NSASSERT=1"`;
|
16
|
const args = release ? '' : `GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 RCT_DEBUG=1 RCT_DEV=1 RCT_NSASSERT=1"`;
|
17
|
|
17
|
|
18
|
- shellUtils.exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true \
|
|
|
19
|
- cd ios && xcodebuild \
|
|
|
20
|
- -scheme ${scheme} build \
|
|
|
21
|
- -project playground.xcodeproj \
|
|
|
22
|
- -sdk iphonesimulator \
|
|
|
23
|
- -derivedDataPath ./DerivedData/playground \
|
|
|
|
|
18
|
+ shellUtils.exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
|
|
|
19
|
+ cd ios && xcodebuild
|
|
|
20
|
+ -scheme ${scheme} build
|
|
|
21
|
+ -project playground.xcodeproj
|
|
|
22
|
+ -sdk iphonesimulator
|
|
|
23
|
+ -derivedDataPath ./DerivedData/playground
|
24
|
${args}`);
|
24
|
${args}`);
|
25
|
}
|
25
|
}
|
26
|
|
26
|
|
|
|
|
|
29
|
shellUtils.exec.kill(`detox-server`);
|
29
|
shellUtils.exec.kill(`detox-server`);
|
30
|
shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
|
30
|
shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
|
31
|
const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
|
31
|
const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
|
|
|
32
|
+
|
32
|
shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}"
|
33
|
shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}"
|
33
|
- BABEL_ENV=test
|
|
|
34
|
- ./node_modules/mocha/bin/mocha e2e
|
|
|
35
|
- --timeout 120000
|
|
|
36
|
- --recursive
|
|
|
37
|
- --compilers js:babel-register`);
|
|
|
|
|
34
|
+ BABEL_ENV=test
|
|
|
35
|
+ ./node_modules/mocha/bin/mocha e2e
|
|
|
36
|
+ --timeout 120000
|
|
|
37
|
+ --recursive
|
|
|
38
|
+ --compilers js:babel-register`);
|
38
|
} finally {
|
39
|
} finally {
|
39
|
shellUtils.exec.kill(`detox-server`);
|
40
|
shellUtils.exec.kill(`detox-server`);
|
40
|
if (release) {
|
41
|
if (release) {
|