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:
- test
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm
- cache/Cypress
- node_modules
- node_modules/
- .npm/
test:
image: cypress/browsers:node12.14.1-chrome85-ff81
stage: test
script:
# install dependencies
- npm ci
# Kjør express-serveren i bakgrunnen
- npm start &
# Kjør testene
- npm test
# start the server in the background
- npm run start:ci &
# run Cypress tests
- npm start
artifacts:
when: always
paths:
- cypress/videos
- cypress/screenshots
- cypress/videos/**/*.mp4
- cypress/screenshots/**/*.png
expire_in: 1 day
\ No newline at end of file
stages:
- test
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm
- cache/Cypress
- node_modules
- node_modules/
- .npm/
test:
image: cypress/browsers:node12.14.1-chrome85-ff81
stage: test
script:
# install dependencies
- npm ci
# Kjør express-serveren i bakgrunnen
- npm start &
# Kjør testene
- npm test
# start the server in the background
- npm run start:ci &
# run Cypress tests
- npm start
artifacts:
when: always
paths:
- cypress/videos
- cypress/screenshots
- cypress/videos/**/*.mp4
- cypress/screenshots/**/*.png
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