|
|
@ -1,10 +1,13 @@
|
|
|
|
image: node:9.3
|
|
|
|
image: node:9.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
|
|
|
|
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
|
|
|
|
|
|
|
|
|
|
|
|
cache:
|
|
|
|
cache:
|
|
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
- node_modules
|
|
|
|
- /root/.cache/Cypress
|
|
|
|
- cache/Cypress
|
|
|
|
|
|
|
|
|
|
|
|
stages:
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- test
|
|
|
@ -145,4 +148,5 @@ integration tests:
|
|
|
|
stage: integration tests
|
|
|
|
stage: integration tests
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- yarn install
|
|
|
|
- yarn install
|
|
|
|
- $(yarn bin)/cypress run test-integration -c baseUrl="${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}"
|
|
|
|
- npx cypress install
|
|
|
|
|
|
|
|
- npx cypress run test-integration -c baseUrl="${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}"
|