Browse Source

Change CI env to JENKINS_CI

Shalom Yerushalmy 6 years ago
parent
commit
ed459cc985
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      scripts/release.js
  2. 1
    1
      scripts/test-e2e.js

+ 1
- 1
scripts/release.js View File

18
 }
18
 }
19
 
19
 
20
 function validateEnv() {
20
 function validateEnv() {
21
-  if (!process.env.CI) {
21
+  if (!process.env.JENKINS_CI) {
22
     throw new Error(`releasing is only available from CI`);
22
     throw new Error(`releasing is only available from CI`);
23
   }
23
   }
24
 
24
 

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

12
   const prefix = android ? `android.emu` : `ios.sim`;
12
   const prefix = android ? `android.emu` : `ios.sim`;
13
   const suffix = release ? `release` : `debug`;
13
   const suffix = release ? `release` : `debug`;
14
   const configuration = `${prefix}.${suffix}`;
14
   const configuration = `${prefix}.${suffix}`;
15
-  const cleanup = process.env.CI ? `--cleanup` : ``;
15
+  const cleanup = process.env.JENKINS_CI ? `--cleanup` : ``;
16
 
16
 
17
   if (!skipBuild) {
17
   if (!skipBuild) {
18
     exec.execSync(`detox build --configuration ${configuration}`);
18
     exec.execSync(`detox build --configuration ${configuration}`);