Browse Source

CI: update yarn install to avoid installation conflicts

Olivier Massot 4 months ago
parent
commit
7a01cb687a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .gitlab-ci.yml

+ 3 - 1
.gitlab-ci.yml

@@ -6,6 +6,8 @@ stages:
 variables:
 variables:
   APP_ENV: ci
   APP_ENV: ci
   GIT_CLEAN_FLAGS: -ffdx
   GIT_CLEAN_FLAGS: -ffdx
+  YARN_ENABLE_PARALLEL_INSTALL: "false"
+  YARN_ENABLE_NETWORK: "true"
 
 
 cache:
 cache:
   key: ${CI_COMMIT_REF_SLUG}-${CI_PIPELINE_ID}
   key: ${CI_COMMIT_REF_SLUG}-${CI_PIPELINE_ID}
@@ -29,7 +31,7 @@ build_image:
     #- rm -rf node_modules/ .yarn/ || true
     #- rm -rf node_modules/ .yarn/ || true
     - echo "" > ./env/local.app.opentalent.fr.crt
     - echo "" > ./env/local.app.opentalent.fr.crt
     - echo "" > ./env/local.app.opentalent.fr.key
     - echo "" > ./env/local.app.opentalent.fr.key
-    - yarn install --frozen-lockfile --network-timeout 10000
+    - yarn install --frozen-lockfile --network-timeout 60000 --mutex network
     - HOSTNAME=ci yarn prepare
     - HOSTNAME=ci yarn prepare
 
 
 unit:
 unit: