|
@@ -3,6 +3,7 @@ const exec = require('shell-utils').exec;
|
3
|
3
|
|
4
|
4
|
const android = _.includes(process.argv, '--android');
|
5
|
5
|
const release = _.includes(process.argv, '--release');
|
|
6
|
+const skipBuild = _.includes(process.argv, '--skipBuild');
|
6
|
7
|
|
7
|
8
|
run();
|
8
|
9
|
|
|
@@ -13,6 +14,6 @@ function run() {
|
13
|
14
|
const configuration = `${prefix}.${suffix}`;
|
14
|
15
|
const cleanup = process.env.CI ? `--cleanup` : ``;
|
15
|
16
|
|
16
|
|
- exec.execSync(`detox build --configuration ${configuration}`);
|
|
17
|
+ !skipBuild && exec.execSync(`detox build --configuration ${configuration}`);
|
17
|
18
|
exec.execSync(`detox test --configuration ${configuration} --platform ${platform} ${cleanup}`);
|
18
|
19
|
}
|