Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
todo-application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
devops-project
todo-application
Commits
6ee2f986
Commit
6ee2f986
authored
4 years ago
by
derrabauke
Browse files
Options
Downloads
Patches
Plain Diff
Add stage description and cache dicrectories
parent
c2d33f69
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-1
9 additions, 1 deletion
.gitlab-ci.yml
with
9 additions
and
1 deletion
.gitlab-ci.yml
+
9
−
1
View file @
6ee2f986
image
:
node:12.16.3
stages
:
-
test
-
build
-
deploy
variables
:
MONGODB_VERSION
:
'
4.2.6'
MONGODB_URL
:
'
mongodb://mongodb:27017/test'
...
...
@@ -9,15 +14,18 @@ variables:
# http://docs.gitlab.com/ee/ci/yaml/README.html#cache
cache
:
paths
:
-
node_modules/
-
app/client/node_modules/
-
app/server/node_modules/
test_client
:
stage
:
test
script
:
-
cd app/client
-
npm install
-
npm run test
test_server
:
stage
:
test
# Info: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services
:
-
name
:
mongo:$MONGODB_VERSION
...
...
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