瀏覽代碼

CI: update yarn install to avoid installation conflicts

Olivier Massot 4 月之前
父節點
當前提交
7a01cb687a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .gitlab-ci.yml

+ 3 - 1
.gitlab-ci.yml

@@ -6,6 +6,8 @@ stages:
 variables:
   APP_ENV: ci
   GIT_CLEAN_FLAGS: -ffdx
+  YARN_ENABLE_PARALLEL_INSTALL: "false"
+  YARN_ENABLE_NETWORK: "true"
 
 cache:
   key: ${CI_COMMIT_REF_SLUG}-${CI_PIPELINE_ID}
@@ -29,7 +31,7 @@ build_image:
     #- rm -rf node_modules/ .yarn/ || true
     - echo "" > ./env/local.app.opentalent.fr.crt
     - 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
 
 unit: