Skip to content
Snippets Groups Projects
Commit 4208d131 authored by emjohansen's avatar emjohansen
Browse files

dsadas

parent 38553ec1
No related branches found
No related tags found
No related merge requests found
Pipeline #133083 canceled
stages: stages:
- test - test
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- .npm - node_modules/
- cache/Cypress - .npm/
- node_modules
test: test:
image: cypress/browsers:node12.14.1-chrome85-ff81 image: cypress/browsers:node12.14.1-chrome85-ff81
stage: test stage: test
script: script:
# install dependencies # install dependencies
- npm ci - npm ci
# Kjør express-serveren i bakgrunnen # start the server in the background
- npm start & - npm run start:ci &
# Kjør testene # run Cypress tests
- npm test - npm start
artifacts: artifacts:
when: always when: always
paths: paths:
- cypress/videos - cypress/videos/**/*.mp4
- cypress/screenshots - cypress/screenshots/**/*.png
expire_in: 1 day expire_in: 1 day
\ No newline at end of file
stages: stages:
- test - test
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- .npm - node_modules/
- cache/Cypress - .npm/
- node_modules
test: test:
image: cypress/browsers:node12.14.1-chrome85-ff81 image: cypress/browsers:node12.14.1-chrome85-ff81
stage: test stage: test
script: script:
# install dependencies # install dependencies
- npm ci - npm ci
# Kjør express-serveren i bakgrunnen # start the server in the background
- npm start & - npm run start:ci &
# Kjør testene # run Cypress tests
- npm test - npm start
artifacts: artifacts:
when: always when: always
paths: paths:
- cypress/videos - cypress/videos/**/*.mp4
- cypress/screenshots - cypress/screenshots/**/*.png
expire_in: 1 day expire_in: 1 day
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment