|
@@ -16,7 +16,7 @@ function buildProjForDetox() {
|
16
|
16
|
|
17
|
17
|
shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb ${release ? '' : 'debug'}`);
|
18
|
18
|
|
19
|
|
- shellUtils.exec.execSync(`echo -en 'travis_fold:start:xcodebuild\n'`);
|
|
19
|
+ shellUtils.exec.execSync(`echo 'travis_fold:start:xcodebuild'`);
|
20
|
20
|
const cmd = `RCT_NO_LAUNCH_PACKAGER=true
|
21
|
21
|
cd ios && xcodebuild
|
22
|
22
|
-scheme ${scheme} build
|
|
@@ -29,7 +29,7 @@ function buildProjForDetox() {
|
29
|
29
|
} else {
|
30
|
30
|
shellUtils.exec.execSync(`${cmd}`);
|
31
|
31
|
}
|
32
|
|
- shellUtils.exec.execSync(`echo -en 'travis_fold:end:xcodebuild\n'`);
|
|
32
|
+ shellUtils.exec.execSync(`echo 'travis_fold:end:xcodebuild'`);
|
33
|
33
|
}
|
34
|
34
|
function hasXcpretty() {
|
35
|
35
|
try {
|
|
@@ -41,6 +41,7 @@ function hasXcpretty() {
|
41
|
41
|
|
42
|
42
|
function e2e() {
|
43
|
43
|
try {
|
|
44
|
+ shellUtils.exec.execSync(`echo 'travis_fold:start:detox-ios'`);
|
44
|
45
|
shellUtils.exec.execSyncSilent(`watchman watch-del-all || true`);
|
45
|
46
|
shellUtils.exec.kill(`detox-server`);
|
46
|
47
|
shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
|
|
@@ -49,19 +50,16 @@ function e2e() {
|
49
|
50
|
shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}"
|
50
|
51
|
BABEL_ENV=test
|
51
|
52
|
./node_modules/mocha/bin/mocha e2e
|
52
|
|
- --timeout 120000
|
|
53
|
+ --timeout 240000
|
53
|
54
|
--recursive
|
54
|
55
|
--compilers js:babel-register`);
|
55
|
56
|
} finally {
|
56
|
57
|
shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb`);
|
57
|
58
|
shellUtils.exec.kill(`detox-server`);
|
58
|
|
- if (release) {
|
59
|
|
- shellUtils.exec.kill(`Simulator`);
|
60
|
|
- shellUtils.exec.kill(`CoreSimulator`);
|
61
|
|
- }
|
62
|
59
|
shellUtils.exec.execSync(`cat ./detox-server.log`);
|
63
|
60
|
shellUtils.exec.execSync(`rm -f ./detox-server.log`);
|
64
|
61
|
shellUtils.exec.execSync(`sleep 5`);
|
|
62
|
+ shellUtils.exec.execSync(`echo 'travis_fold:end:detox-ios'`);
|
65
|
63
|
}
|
66
|
64
|
}
|
67
|
65
|
|