Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven-Erik Teveldal Nystad
Øving 8 - GitLab-CI
Commits
231197a0
Commit
231197a0
authored
Apr 12, 2021
by
Sven-Erik Teveldal Nystad
Browse files
Update .gitlab-ci.yml
parent
4302c984
Pipeline
#127096
passed with stage
in 2 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
231197a0
...
...
@@ -4,29 +4,30 @@ stages:
variables
:
npm_config_cache
:
"
$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER
:
"
$CI_PROJECT_DIR/cache/Cypress"
cache
:
# https://gitlab.com/help/ci/caching/index.md
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
paths
:
-
.npm
-
cache/Cypress
-
cache/Cypress
-
node_modules
test
:
image
:
cypress/base:10
stage
:
test
script
:
# install dependencies
-
npm ci
# Kjør express-serveren i bakgrunnen
-
npm start &
#
Kjør
test
ene
#
run Cypress
test
s
-
npm test
artifacts
:
when
:
always
paths
:
-
cypress/videos
-
cypress/screenshots
expire_in
:
1 day
\ No newline at end of file
artifacts
:
when
:
always
paths
:
-
cypress/videos
-
cypress/screenshots
expire_in
:
1 week
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment