Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 27fd34a8 authored by flothoni's avatar flothoni
Browse files

.gitlab-ci; move cypress client into a splitted file in browser

parent e97811cc
Pipeline #262893 failed with stages
in 12 minutes and 14 seconds
......@@ -58,6 +58,7 @@ include:
- local: '/doc/.gitlab-ci.yml' # Doc
- local: 'algo/.gitlab-ci-compilers.yml' # Stage multiple_tests
- local: 'algo/.gitlab-ci.yml' # Vidjil-algo pipelines
- local: 'browser/.gitlab-ci.yml' # Vidjil-algo pipelines
- template: Code-Quality.gitlab-ci.yml # Code quality
# Algorithm
......@@ -629,69 +630,3 @@ stop_deploy_review_server:
- /^feature-.*s.*\/.*$/
- /^hotfix-.*s.*\/.*$/
.test_cypress_base:
stage: test_cypress_client
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker pull "vidjilci/cypress_with_browsers:latest"
- cd browser/
- make icons
- cd ..
- make -C doc analysis-example || true
# Cypress
- echo -e "Run cypress with browser; $CYPRESS_PATH"
- >
docker run
-v $PWD/$CYPRESS_PATH:/app/cypress
-v $PWD/browser/test/data:/app/cypress/fixtures/data
-v $PWD/doc:/app/cypress/fixtures/doc
-v $PWD:/app/vidjil
-v "$PWD/docker/ci/cypress.json":"/app/cypress.json"
-v "$PWD/docker/ci/cypress_script.bash":"/app/script.bash"
--env BROWSER=$BROWSER
--env HOST=$HOST
--env PROJECT=$PROJECT
--env CI_PASSWORD_TEST=$CI_PASSWORD_TEST
--network="host"
"vidjilci/cypress_with_browsers:latest" bash script.bash
variables:
BROWSER: electron
CYPRESS_PATH: browser/test/cypress
HOST: local
artifacts:
reports:
junit: $CYPRESS_PATH/reports/test-cypress-*.xml
paths:
- $CYPRESS_PATH
expire_in: 7 day
when: always
tags:
- docker
## cypress client
client_firefox_legacy:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/firefox_legacy/firefox
client_firefox_latest:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/firefox_latest/firefox
client_chrome_latest:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/chrome_latest/chrome
client_chrome_legacy:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/chrome_legacy/chrome
.test_cypress_base:
stage: test_cypress_client
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker pull "vidjilci/cypress_with_browsers:latest"
- cd browser/
- make icons
- cd ..
- make -C doc analysis-example || true
# Cypress
- echo -e "Run cypress with browser; $CYPRESS_PATH"
- >
docker run
-v $PWD/$CYPRESS_PATH:/app/cypress
-v $PWD/browser/test/data:/app/cypress/fixtures/data
-v $PWD/doc:/app/cypress/fixtures/doc
-v $PWD:/app/vidjil
-v "$PWD/docker/ci/cypress.json":"/app/cypress.json"
-v "$PWD/docker/ci/cypress_script.bash":"/app/script.bash"
--env BROWSER=$BROWSER
--env HOST=$HOST
--env PROJECT=$PROJECT
--env CI_PASSWORD_TEST=$CI_PASSWORD_TEST
--network="host"
"vidjilci/cypress_with_browsers:latest" bash script.bash
variables:
BROWSER: electron
CYPRESS_PATH: browser/test/cypress
HOST: local
artifacts:
reports:
junit: $CYPRESS_PATH/reports/test-cypress-*.xml
paths:
- $CYPRESS_PATH
expire_in: 7 day
when: always
tags:
- docker
## cypress client
client_firefox_legacy:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/firefox_legacy/firefox
client_firefox_latest:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/firefox_latest/firefox
client_chrome_latest:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/chrome_latest/chrome
client_chrome_legacy:
extends:
- .test_cypress_base
variables:
BROWSER: browsers/chrome_legacy/chrome
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment