|
|
|
|
34
|
try {
|
34
|
try {
|
35
|
shellUtils.exec.execSync(`echo 'travis_fold:start:detox-ios'`);
|
35
|
shellUtils.exec.execSync(`echo 'travis_fold:start:detox-ios'`);
|
36
|
shellUtils.exec.execSyncSilent(`watchman watch-del-all || true`);
|
36
|
shellUtils.exec.execSyncSilent(`watchman watch-del-all || true`);
|
37
|
- shellUtils.exec.kill(`detox-server`);
|
|
|
38
|
- shellUtils.exec.exec(`./node_modules/.bin/detox-server`);
|
|
|
39
|
const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}-iphonesimulator/playground.app`;
|
37
|
const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}-iphonesimulator/playground.app`;
|
40
|
|
38
|
|
41
|
shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}"
|
39
|
shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}"
|
|
|
|
|
45
|
--recursive
|
43
|
--recursive
|
46
|
--bail`);
|
44
|
--bail`);
|
47
|
} finally {
|
45
|
} finally {
|
48
|
- shellUtils.exec.kill(`detox-server`);
|
|
|
49
|
if (process.env.CI) {
|
46
|
if (process.env.CI) {
|
50
|
shellUtils.exec.kill(`Simulator`);
|
47
|
shellUtils.exec.kill(`Simulator`);
|
51
|
shellUtils.exec.kill(`CoreSimulator`);
|
48
|
shellUtils.exec.kill(`CoreSimulator`);
|