Skip to content
Snippets Groups Projects
Commit bdaf27ef authored by Alexis POYEN's avatar Alexis POYEN
Browse files

CI: run test and build pipeline on MR only when targetting develop

parent b33dd3a2
Branches
No related tags found
2 merge requests!15Release,!14CI: migrate from only/except to rules
Pipeline #105480 passed
...@@ -22,7 +22,7 @@ build-back: ...@@ -22,7 +22,7 @@ build-back:
- ./back/node_modules - ./back/node_modules
expire_in: 1h expire_in: 1h
rules: rules:
- if: $CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH != "release" - if: $CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH != "release" && $CI_PIPELINE_SOURCE != "merge_request_event"
changes: changes:
- .gitlab-ci.yml - .gitlab-ci.yml
- back/**/* - back/**/*
...@@ -43,7 +43,7 @@ test-back: ...@@ -43,7 +43,7 @@ test-back:
- ./back/coverage/lcov.info - ./back/coverage/lcov.info
expire_in: 5 mins expire_in: 5 mins
rules: rules:
- if: $CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH != "release" - if: $CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH != "release" && $CI_PIPELINE_SOURCE != "merge_request_event"
changes: changes:
- .gitlab-ci.yml - .gitlab-ci.yml
- back/**/* - back/**/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment