Olivier Massot 4 年之前
父節點
當前提交
f6dab45993
共有 2 個文件被更改,包括 7 次插入29 次删除
  1. 5 28
      .gitlab-ci.yml
  2. 2 1
      cypress.json

+ 5 - 28
.gitlab-ci.yml

@@ -1,4 +1,5 @@
 # @see https://docs.cypress.io/guides/continuous-integration/gitlab-ci
+# Consult the results on the Cypress dashboard: https://dashboard.cypress.io/
 
 stages:
   - build
@@ -33,13 +34,7 @@ chrome:
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --parallel --browser chrome --group "Chrome" --spec "test/cypress/integration/*"
-  artifacts:
-    when: always
-    paths:
-      - cypress/videos/**/*.mp4
-      - cypress/screenshots/**/*.png
-    expire_in: 1 day
+    - yarn cypress:silent --record --parallel --browser chrome --group "Chrome" --spec "test/cypress/integration/*"
 
 chrome-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
@@ -47,13 +42,7 @@ chrome-mobile:
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --parallel --browser chrome --group "Chrome - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
-  artifacts:
-    when: always
-    paths:
-      - cypress/videos/**/*.mp4
-      - cypress/screenshots/**/*.png
-    expire_in: 1 day
+    - yarn cypress:silent --record --parallel --browser chrome --group "Chrome - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
 
 firefox:
   image: cypress/browsers:node14.17.0-chrome88-ff89
@@ -61,13 +50,7 @@ firefox:
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --parallel --browser firefox --group "Firefox" --spec "test/cypress/integration/*"
-  artifacts:
-    when: always
-    paths:
-      - cypress/videos/**/*.mp4
-      - cypress/screenshots/**/*.png
-    expire_in: 1 day
+    - yarn cypress:silent --record --parallel --browser firefox --group "Firefox" --spec "test/cypress/integration/*"
 
 firefox-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
@@ -75,10 +58,4 @@ firefox-mobile:
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --parallel --browser firefox --group "Firefox - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
-  artifacts:
-    when: always
-    paths:
-      - cypress/videos/**/*.mp4
-      - cypress/screenshots/**/*.png
-    expire_in: 1 day
+    - yarn cypress:silent --record --parallel --browser firefox --group "Firefox - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"

+ 2 - 1
cypress.json

@@ -9,5 +9,6 @@
   "env": {
     "apiUrl": "http://nginx"
   },
-  "watchForFileChanges": false
+  "watchForFileChanges": false,
+  "projectId": "i517ya"
 }