Olivier Massot 4 rokov pred
rodič
commit
15086f1425
1 zmenil súbory, kde vykonal 10 pridanie a 11 odobranie
  1. 10 11
      .gitlab-ci.yml

+ 10 - 11
.gitlab-ci.yml

@@ -24,38 +24,37 @@ install:
   script:
     - yarn install --frozen-lockfile
     # check Cypress binary path and cached versions
-    - npx cypress cache path
-    - npx cypress cache list
-    - yarn build:ci
+    - npx node_modules/.bin/cypress cache path
+    - npx node_modules/.bin/cypress cache list
 
 ui-chrome:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
-    - yarn start:ci & npx wait-on http://localhost:3000
-    - npx cypress run --record --parallel --browser chrome --group "Chrome" --spec "test/cypress/integration/*"
+    - yarn dev & npx wait-on http://localhost:3004
+    - yarn cypress:silent --record --parallel --browser chrome --group "Chrome" --spec "test/cypress/integration/*"
 
 ui-chrome-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
-    - yarn start:ci & npx wait-on http://localhost:3000
-    - npx cypress run --record --parallel --browser chrome --group "Chrome - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
+    - yarn dev & npx wait-on http://localhost:3004
+    - yarn cypress:silent --record --parallel --browser chrome --group "Chrome - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
 
 ui-firefox:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
-    - yarn start:ci & npx wait-on http://localhost:3000
-    - npx cypress run --record --parallel --browser firefox --group "Firefox" --spec "test/cypress/integration/*"
+    - yarn dev & npx wait-on http://localhost:3004
+    - yarn cypress:silent --record --parallel --browser firefox --group "Firefox" --spec "test/cypress/integration/*"
 
 ui-firefox-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
-    - yarn start:ci & npx wait-on http://localhost:3000
-    - npx cypress run --record --parallel --browser firefox --group "Firefox - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
+    - yarn dev & npx wait-on http://localhost:3004
+    - yarn cypress:silent --record --parallel --browser firefox --group "Firefox - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"