ソースを参照

[Detox] add --skipBuild arg

Guy Carmeli 6 年 前
コミット
a7342f1f6d
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2
    1
      scripts/test-e2e.js

+ 2
- 1
scripts/test-e2e.js ファイルの表示

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