Browse Source

[Detox] add --skipBuild arg

Guy Carmeli 6 years ago
parent
commit
a7342f1f6d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      scripts/test-e2e.js

+ 2
- 1
scripts/test-e2e.js View File

@@ -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
 }