mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 20:42:52 +00:00
test: use cypress instead of protractor
This commit is contained in:
@@ -5,7 +5,7 @@ before_script:
|
||||
|
||||
default:
|
||||
tags:
|
||||
- performance
|
||||
- docker
|
||||
|
||||
stages:
|
||||
- setup
|
||||
@@ -29,8 +29,6 @@ setup:
|
||||
- docker push registry.gitlab.com/openstapps/app
|
||||
cache: {} # disable irrelevant cache for this job
|
||||
before_script: [] # do not run irrelevant before script for this job
|
||||
tags:
|
||||
- docker
|
||||
|
||||
build:
|
||||
stage: build
|
||||
@@ -39,6 +37,8 @@ build:
|
||||
artifacts:
|
||||
paths:
|
||||
- www
|
||||
tags:
|
||||
- performance
|
||||
|
||||
lint:
|
||||
stage: build
|
||||
@@ -53,10 +53,27 @@ unit:
|
||||
paths:
|
||||
- coverage
|
||||
|
||||
e2e:
|
||||
e2e-chrome:
|
||||
image: cypress/browsers:node14.17.0-chrome91-ff89
|
||||
stage: test
|
||||
script:
|
||||
- npm run e2e
|
||||
- npm run e2e -- --watch=false --headless=true --browser=chrome
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- cypress/videos
|
||||
- cypress/screenshots
|
||||
|
||||
e2e-firefox:
|
||||
image: cypress/browsers:node14.17.0-chrome91-ff89
|
||||
stage: test
|
||||
script:
|
||||
- npm run e2e -- --watch=false --headless=true --browser=firefox
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- cypress/videos
|
||||
- cypress/screenshots
|
||||
|
||||
audit:
|
||||
stage: test
|
||||
@@ -104,8 +121,6 @@ executable:
|
||||
- .gitlab/ci/pushAsLatestVersion.sh "$CI_COMMIT_REF_NAME" "$IMAGETAG_BASE"
|
||||
only:
|
||||
- /^(v[0-9]+\.[0-9]+\.[0-9]+|master|develop)$/
|
||||
tags:
|
||||
- docker
|
||||
|
||||
review:
|
||||
stage: deploy
|
||||
|
||||
Reference in New Issue
Block a user