Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lise Sporsheim Gundersen
gitlab-CI
Commits
d873c240
Commit
d873c240
authored
4 years ago
by
Lise Sporsheim Gundersen
Browse files
Options
Downloads
Patches
Plain Diff
added gitlab ci
parent
4630e3d6
No related branches found
No related tags found
No related merge requests found
Pipeline
#136135
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-0
27 additions, 0 deletions
.gitlab-ci.yml
with
27 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
27
−
0
View file @
d873c240
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
test
:
image
:
cypress/base:10
stage
:
test
script
:
# install dependencies
-
npm ci
# Kjør express-serveren i bakgrunnen
-
npm start &
# Kjør testene
-
npm test
artifacts
:
when
:
always
paths
:
-
cypress/videos
-
cypress/screenshots
expire_in
:
1 day
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment