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
0875c69e
Commit
0875c69e
authored
4 years ago
by
Falk
Browse files
Options
Downloads
Patches
Plain Diff
Leaving out extra definition of mongodb stuff since its already passed by vars
parent
6fb6148d
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
+4
-8
4 additions, 8 deletions
.gitlab-ci.yml
with
4 additions
and
8 deletions
.gitlab-ci.yml
+
4
−
8
View file @
0875c69e
image
:
node:12.16.3
image
:
node:12.16.3
# Info: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services
:
-
name
:
mongo:$MONGODB_VERSION
alias
:
mongodb
variables
:
variables
:
MONGODB_VERSION
:
'
4.2.6'
MONGODB_VERSION
:
'
4.2.6'
MONGODB_URL
:
'
mongodb:27017/test'
MONGODB_URL
:
'
mongodb:27017/test'
...
@@ -22,12 +17,13 @@ test_client:
...
@@ -22,12 +17,13 @@ test_client:
-
npm run test
-
npm run test
test_server
:
test_server
:
# Info: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services
:
-
name
:
mongo:$MONGODB_VERSION
alias
:
mongodb
script
:
script
:
-
cd app/server
-
cd app/server
-
npm install
-
npm install
-
ps -e | grep
-
PORT=3002 \
-
PORT=3002 \
MONGODB_URL=$MONGODB_URL \
JWT_SECRET=$JWT_SECRET \
npm run test
npm run test
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