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
Julien Jerphanion
Rex Dri
Commits
4720be82
Commit
4720be82
authored
Mar 19, 2019
by
Florent Chehab
Browse files
fix(ci): pipeline only on merge request
Now runs the pipeline only once a MR is open. Fixes #83
parent
467f86da
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4720be82
...
@@ -16,8 +16,13 @@ variables:
...
@@ -16,8 +16,13 @@ variables:
DB_HOST
:
postgres
DB_HOST
:
postgres
DB_PORT
:
5432
DB_PORT
:
5432
.only-default
:
&only-default
only
:
-
master
-
merge_requests
check_back
:
check_back
:
<<
:
*only-default
stage
:
check
stage
:
check
image
:
registry.gitlab.utc.fr/rex-dri/rex-dri/backend
image
:
registry.gitlab.utc.fr/rex-dri/rex-dri/backend
services
:
services
:
...
@@ -33,6 +38,7 @@ check_back:
...
@@ -33,6 +38,7 @@ check_back:
-
docker
-
docker
check_front
:
check_front
:
<<
:
*only-default
stage
:
check
stage
:
check
image
:
node:10.15.1-alpine
image
:
node:10.15.1-alpine
cache
:
cache
:
...
@@ -46,6 +52,7 @@ check_front:
...
@@ -46,6 +52,7 @@ check_front:
-
docker
-
docker
test_back
:
test_back
:
<<
:
*only-default
stage
:
test
stage
:
test
image
:
registry.gitlab.utc.fr/rex-dri/rex-dri/backend
image
:
registry.gitlab.utc.fr/rex-dri/rex-dri/backend
services
:
services
:
...
@@ -61,6 +68,7 @@ test_back:
...
@@ -61,6 +68,7 @@ test_back:
-
docker
-
docker
test_frontend
:
test_frontend
:
<<
:
*only-default
stage
:
test
stage
:
test
image
:
node:10.15.1-alpine
image
:
node:10.15.1-alpine
cache
:
cache
:
...
@@ -74,6 +82,7 @@ test_frontend:
...
@@ -74,6 +82,7 @@ test_frontend:
-
docker
-
docker
flake8
:
flake8
:
<<
:
*only-default
stage
:
lint
stage
:
lint
image
:
registry.gitlab.utc.fr/rex-dri/rex-dri/backend
image
:
registry.gitlab.utc.fr/rex-dri/rex-dri/backend
script
:
script
:
...
@@ -82,6 +91,7 @@ flake8:
...
@@ -82,6 +91,7 @@ flake8:
-
docker
-
docker
eslint
:
eslint
:
<<
:
*only-default
stage
:
lint
stage
:
lint
image
:
node:10.15.1-alpine
image
:
node:10.15.1-alpine
cache
:
cache
:
...
...
Write
Preview
Markdown
is supported
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